Documentation
¶
Overview ¶
Package tiptap implements the TipTap WYSIWYG editor.Provider for the CMS engine.
TipTap is a MIT-licensed ProseMirror-based editor for the JS side. On the Go side, we serialize block trees as the canonical JSON shape that ProseMirror documents use:
{
"type": "doc",
"content": [
{ "type": "paragraph", "content": [ {"type": "text", "text": "Hi"} ] }
]
}
This implementation handles the common subset: doc / paragraph / text / heading / bullet_list / ordered_list / list_item / blockquote. Marks supported on text: bold, italic, code, link.
Per gocodealone-multisite SPEC.md V10, V14: deterministic server-side render; ⊥ client-side JS fetch unless explicit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct{}
Provider implements editor.Provider for TipTap.
func (*Provider) EmptyBlocks ¶
func (p *Provider) EmptyBlocks() json.RawMessage
func (*Provider) FrontendBundleID ¶
Click to show internal directories.
Click to hide internal directories.