@mocanvas/mocanvas · constant

tipTapDefaultExtensions

declare const tipTapDefaultExtensions: readonly RichTextExtension[]

The default extension set the canvas text editor uses.

Pass it to the editor as textOptions: { tipTapConfig: { extensions: tipTapDefaultExtensions } }, or spread it to add your own: [...tipTapDefaultExtensions, MyExtension].

Every entry describes one node or mark type. mocanvas reads the descriptions when it serializes a document for measurement, rasterizes a label or writes SVG. Real TipTap extension instances may be appended to the list; they are handed to the editor factory an app registers with registerRichTextEditorFactory and ignored by the description-driven paths, which fall back to the built-in table for the standard types.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.