269
Users and collaborators community Ask a question or leave a feedback about Editor.js https://github.com/codex-team/editor.js Please, write in English. 💝 Support project: http://opencollective.com/editorjs
You can create custom tools with your markup and logic
Читать полностью…
here is my code
Читать полностью…
import { useEffect, useRef } from 'react';
import EditorJS, { PasteEvent } from '@editorjs/editorjs';
import Table from '@editorjs/table';
import Image from '@editorjs/image';
export class CustomImage extends Image {
constructor(params) {
super(params);
}
onPaste(event: PasteEvent){
console.log('img', { event });
}
}
export class CustomTable extends Table {
constructor(params) {
super(params);
}
onPaste(event: PasteEvent) {
console.log('img', { event });
}
}
const Editor = () => {
const editorInstance = useRef(null);
const editorHolderRef = useRef(null);
useEffect(() => {
const editor = new EditorJS({
holder: 'editorjs',
tools: {
table: CustomTable,
image: CustomImage,
},
});
editorInstance.current = editor;
handler(editorHolderRef.current);
}, []);
const handler = (div) => {
div.addEventListener('paste', (event) => {
event.preventDefault();
const pasteData = event.clipboardData || window.clipboardData;
console.log(pasteData.types);
});
};
return (
<div
id='editorjs'
ref={editorHolderRef}
style={{ border: '1px solid #ccc', padding: '10px', width: '100vw' }}
/>
);
};
function App() {
return (
<>
<h1>editorjs</h1>
<Editor />
</>
);
}
Hey, we’re working on it. You can follow the progress in this repo: https://github.com/editor-js/document-model. This is an epic feature, so sponsorship really helps us move faster. DM me if you’d like to help and get it sooner
Читать полностью…
Hey. It will work flawlessly in 3.0 which is under development at the moment. The best way to help shipping it faster is a donation on OpenCollective.
https://opencollective.com/editorjs
📦 editorjs/embed">@editorjs/embed 2.7.6 was published
Читать полностью…
📦 editorjs/embed">@editorjs/embed 2.7.5 was published
Читать полностью…
Has anyone tried creating animations like this in editorJS? https://x.com/zack_overflow/status/1853494692169896361
How did / would you go about it?
📦 editorjs/image">@editorjs/image 2.10.0 was published
Читать полностью…
Hey everyone! I was wondering if it was possible to make Editor.js work on my own custom html?
I created the buttons/editable div myself and want the logic to be from Editor.js. Is this possible? and if so how?
hey guys, can you help me with the issue
i have an editorjs instance on my react app
and i want to paste data on my editor as table from excel file, but instead of pasting as table it paste as picture
clipboard data have 4 types 'text/plain', 'text/html', 'text/rtf', 'Files'
but my CustomImage tool shows me only 1 type 'Files'
CustomTable tool didn't show me anything
deps"@editorjs/editorjs": "^2.30.6",
"@editorjs/image": "^2.9.3",
"@editorjs/table": "^2.4.2",
i attached video
Hi, I saw this project and instantly fell in love with it... We where thinking about implementing collaborative editing since it's on the roadmap and we have quite a bit of experience with websockets.
Anybody already working on this feature?
When is it expected to be release? Time is the main problem
Читать полностью…
Hi everyone. Been using editorjs for a while for our CMS. The main problem I have is with the undo. Even with the undo plugin it has many issues. Anyone interested to fix this permanently ? I would pay for that. Message me privately if interested
Читать полностью…
📦 editorjs/underline">@editorjs/underline 1.2.1 was published
Читать полностью…