You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I saved the Editor data by network and then I need to render the data in the editor, there is no way to render it properly
Basic example
importReact,{useEffect,useState}from"react";importEditorJsfrom"@natterstefan/react-editor-js";constTestEditor=()=>{const[data,setData]=useState({});const[renderData,saveRenderData]=useState(null);leteditor=null;constgetDataByNetwork=async()=>{/** * http Request code */};/** * get */useEffect(()=>{constrenderData=getDataByNetwork();setData(renderData);},[]);constonSave=async()=>{// https://editorjs.io/saving-datatry{constoutputData=awaiteditor.save();console.log("Article data: ",outputData);}catch(e){console.log("Saving failed: ",e);}};return(<div><buttononClick={onSave}>Save</button>{/* docs: https://editorjs.io/configuration */}<EditorJsdata={data}// will be `editorjs` by defaultholder="custom-editor-container"editorInstance={(editorInstance)=>{// invoked once the editorInstance is readyeditor=editorInstance;}}><divid="custom-editor-container"/></EditorJs></div>);};exportdefaultTestEditor;
Motivation
This feature does not seem to be supported by the official Editorjs, and I hope good developers can support it ! thank u
The text was updated successfully, but these errors were encountered:
Feature Request
When I saved the Editor data by network and then I need to render the data in the editor, there is no way to render it properly
Basic example
Motivation
This feature does not seem to be supported by the official Editorjs, and I hope good developers can support it ! thank u
The text was updated successfully, but these errors were encountered: