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
Hi, Can you please suggest how can I reinitialize incoming markdown data, actually I need to update visual data when incoming markdown data is changed. Now it's not updated.
Hi @Krak86 . In the latest version (0.0.9), you can use the ref to get a reference to the editor and directly call the setContent method to modify the content. Here is a code example:
functionEditor(){constref=useRef<ReactEditorRef>(null);useEffect(()=>{ref.current.editor.setContent('# new markdown');},[]);return<ReactEditorref={editorRef}/>}
Hi, Can you please suggest how can I reinitialize incoming markdown data, actually I need to update visual data when incoming markdown data is changed. Now it's not updated.
Here is example what I mean: https://codesandbox.io/p/sandbox/test-yrcj88?file=%2Fsrc%2FApp.js%3A1%2C1
Maybe it's related to
tiptap
editor itself. Correct me if I am wrong. ThanksThe text was updated successfully, but these errors were encountered: