Novel Docs home page
Search...
⌘K
Ask AI
Demo
Demo
Search...
Navigation
Components
Editor Content
Documentation
Components
Github
Components
Editor Root
Editor Content
Editor Command
Editor Command Item
Editor Bubble
Editor Bubble Item
Utils
useEditor
On this page
Props
Components
Editor Content
Wrapper for Tiptap Provider
For all the available props, see
Tiptap Settings
.
Copy
Ask AI
<
EditorRoot
>
<
EditorContent
>
{
children
}
</
EditorContent
>
</
EditorRoot
>
Props
children
ReactNode
required
A ReactNode that represents the content of the editor.
extensions
Extension[]
required
An array of Tiptap extensions to be used in the editor.
initialContent
JSONContent
Initial editor content in JSON format.
Tiptap Output
onUpdate
(props: { editor: Editor; transaction: Transaction; }) => void
Function that is called when the editor content is updated.
onCreate
onCreate?: (props: { editor: Editor; }) => void
Function that is called when the editor is created.
className
string
Classname for the parent container.
Editor Root
Editor Command
Assistant
Responses are generated using AI and may contain mistakes.