Closed rangicus closed 1 month ago
I'm having the same issue. Tried backign it down to 1.7.8 and 1.7.7
I am seeing the same issue. I fixed it by doing a dynamic import (read more here):
const DesignEditor = dynamic( () => { return import("./edit-design-view"); }, { ssr: false } );
But when doing the above code, the save and export functionality of the editor doesn't work :( Any help would be great.
UPDATE: downgrading to 1.7.7 worked for me. I am using next: 14.0.4
I had the same issue, editor was not working well with dynamic
.
I solved it with: https://stackoverflow.com/questions/77020572/correct-way-to-use-forwardref-and-next-dynamic-in-next-js-13-4-for-react-email
const emailEditorRef = useRef<EditorRef | null>(null)
const onReady: EmailEditorProps['onReady'] = (editor) => {
emailEditorRef.current = { editor }
}
<EmailEditor
ref={emailEditorRef}
onLoad={onLoad}
onReady={onReady}
minHeight={1024}
/>
Next Version: 13.5.2 Unlayer Version: 1.7.9
Log:
Relevant Code: