Props
ReactNode
required
A ReactNode that represents the content of the editor.
Extension[]
required
An array of Tiptap extensions to be used in the editor.
JSONContent
Initial editor content in JSON format. Tiptap
Output
(props: {
editor: Editor;
transaction: Transaction;
}) => void
Function that is called when the editor content is updated.
onCreate?: (props: {
editor: Editor;
}) => void
Function that is called when the editor is created.
string
Classname for the parent container.