Components
Editor Content
Wrapper for Tiptap Provider
For all the available props, see Tiptap Settings.
Props
children
ReactNode
requiredA ReactNode that represents the content of the editor.
extensions
Extension[]
requiredAn 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.