-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrating editor.js in a react application #1202
Comments
I'm not quite sure why you can't access the data, but if you have read the react version doc carefully, the second parameter of the "onChange" API, "newData", is the data returned by the editor. I've tried it and it works as expected. import EditorJS from '@editorjs/editorjs'
constructor(props){
super(props)
this.editor = new EditorJS({
/**
* Id of Element that should contain Editor instance
*/
holder: 'editorjs',
})
}
More specific usage about the instance I recommend the html example as a starting point https://github.com/codex-team/editor.js/blob/release/2.18/example/example.html |
Thanks @ysqsimon. Can you tell me how to render out the saved data in an uneditable format ? |
I am sorry, I couldn't find the html page you referred here. |
@ysqsimon Even though react-editor-js isn't the official react component of editor-js, do you still recommend it as an option in a react application? Or is there something else? |
Hi @lsbyerley, We'd like to focus on core development at the moment. As for ecosystem, we are relying on the community until we have enough resources to make it "official". I close the thread |
I was trying to use the react plugin react-editor-js of editor.js but couldn't access the data returned by the editor, in any way.I want to know can I directly integrate editor.js in a react application without using the react-editor-js ?
The text was updated successfully, but these errors were encountered: