Hi! I would like to understand if it is possible for tools render method to return JSX?
For example, I want each paragraph of editor to be my own (already written) React component, which is basically <div> with contenteditable attribute, but also with a lots of logic inside. Ideally I would love something like this:
class CustomParagraph {
// other methods here
render() {
return <EditableDiv/>; // where EditableDiv is a big component
}
}
export class NewEditableDiv extends React.Component {
render() {
return <EditorJS
tools={{
paragraph: CustomParagraph
}}
/>;
}
}
Hi! I would like to understand if it is possible for tools
rendermethod to return JSX?For example, I want each paragraph of editor to be my own (already written) React component, which is basically
<div>withcontenteditableattribute, but also with a lots of logic inside. Ideally I would love something like this: