Interface: EditorContentProps
Props for <EditorContent>.
Extends
HTMLAttributes<HTMLDivElement>
Properties
| Property | Type | Description |
|---|---|---|
editor | Editor | The editor to mount into the inner element; it is unmounted when the component unmounts. |
html? | string | HTML 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 })} /> |