OptionalattrsThe attributes of the node. Attributes can have any JSON-serializable value.
OptionalcontentThe children of the node. A node can have other nodes as children.
OptionalmarksA list of marks of the node. Inline nodes can have marks.
Optionalattrs?: Record<string, any>The attributes of the mark. Attributes can have any JSON-serializable value.
The type of the mark
OptionaltextThe text content of the node. This property is only present on text nodes
(i.e. nodes with type: 'text').
Text nodes cannot have children, but they can have marks.
OptionaltypeThe type of the node
A Tiptap JSON node or document. Tiptap JSON is the standard format for storing and manipulating Tiptap content. It is equivalent to the JSON representation of a Prosemirror node.
Tiptap JSON documents are trees of nodes. The root node is usually of type
doc. Nodes can have other nodes as children. Nodes can also have marks and attributes. Text nodes (nodes with typetext) have atextproperty and no children.Example