Skip to content

Interface: EditorContentProps ​

Props for <EditorContent>.

Extends ​

  • HTMLAttributes<HTMLDivElement>

Properties ​

PropertyTypeDescription
editorEditorThe editor to mount into the inner element; it is unmounted when the component unmounts.
html?stringHTML shown until the editor mounts, so server-rendered pages (Next.js, Remix) show the content at once instead of an empty box. Make it with toHTML() from @writeon/html, from the same document you pass as content. Only the first value is used; the editor owns the DOM after mount. Example <EditorContent editor={editor} html={toHTML(doc, { extensions })} />