OptionaleditableWhether the editor is editable
OptionalextensionsExtension options
Optionalembeds?: booleanEnable inline file embeds (image / pdf / audio / video / whiteboard /
midi clip) via the assignment-embed node (default: true). When
disabled the editor still parses existing embeds (so old documents
round-trip) but the toolbar's insert action and the picker callback
are no-ops.
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 (for example content created with an extension that is now disabled). The editor falls back to an empty document in that case, so this is how a consumer distinguishes "empty" from "could not be shown".
OptionalonCallback when editor is focused
OptionalonCallback when content updates
OptionalplaceholderPlaceholder text when empty
Options for the useAssignmentEditor hook.
Remarks
Configures the TipTap editor instance with assignment-specific extensions and behavior. The hook manages editor lifecycle including initialization, content updates, and cleanup.