TipTap/ProseMirror JSON content type.
This is the native format for TipTap documents. It represents hierarchical content with nodes, marks, and attributes.
const content: JSONContent = { type: 'doc', content: [ { type: 'paragraph', content: [ { type: 'text', text: 'Hello ' }, { type: 'text', text: 'world', marks: [{ type: 'bold' }] }, ], }, ],}; Copy
const content: JSONContent = { type: 'doc', content: [ { type: 'paragraph', content: [ { type: 'text', text: 'Hello ' }, { type: 'text', text: 'world', marks: [{ type: 'bold' }] }, ], }, ],};
Optional
Node attributes
Child nodes
Text marks (bold, italic, etc.)
Text content (for text nodes)
Node type (e.g., 'doc', 'paragraph', 'heading', 'table')
TipTap/ProseMirror JSON content type.
Remarks
This is the native format for TipTap documents. It represents hierarchical content with nodes, marks, and attributes.
Example