OptionaleditableWhether the editor is editable
OptionalextensionsExtension options
Optionalhighlight?: booleanEnable highlighting (default: true)
Optionallinks?: booleanEnable hyperlinks (default: true). URLs are linked as they are typed or pasted; a click opens the link in a new tab, while editing too. Documents containing links require this to be on — with it off they cannot be loaded.
Optionaltables?: booleanEnable table support (default: true)
OptionaltaskLists?: booleanEnable task lists (default: true)
OptionaltextColor?: booleanEnable text color (default: true)
OptionalinitialInitial content for the editor
OptionalonCallback when editor is blurred
OptionalonCalled when a document cannot be loaded because it contains a node or mark the editor does not support. The editor falls back to an empty document in that case, so this is how "empty" is told from "could not be shown".
OptionalonCallback when editor is focused
OptionalonCallback when content updates
OptionalplaceholderPlaceholder text when empty
Options for the useNoteEditor hook.