Open Ivaneyko opened 1 year ago
const EditorInput = forwardRef<any, Props>(({ label, id = '#', value, onChange, required, error, helperText, margin = 'normal', readOnly = false, minHeight = 32 }, ref) => { const instanceRef = useRef<any>(null); const handleInitialize = useCallback((instance:any) => { instanceRef.current = instance; }, []); const handleChange = async () => { const editorData = await instanceRef?.current?.save(); if ( onChange ) onChange(editorData); } return ( <ReactEditorJS tools={EDITOR_TOOLS} defaultValue={value} onInitialize={handleInitialize} onChange={handleChange} readOnly={readOnly} minHeight={minHeight} holder="editorjs" ><div id="editorjs" /></ReactEditorJS> ) });
Trying with and without custom holder. This happens when you go to the page where it is editor located. When loading a page directly, this does not always happen
holder
I have the same problem
This happens all the time with NextJS
This helps: https://stackoverflow.com/questions/67688118/unhandled-rejection-error-element-with-id-editorjs-is-missing-pass-correct
same issue here without SSR
Environment
Code
Describe
Trying with and without custom
holder
. This happens when you go to the page where it is editor located. When loading a page directly, this does not always happen