@mocanvas/mocanvas · function

getTipTapDefaultExtensions

declare function getTipTapDefaultExtensions(starterKitOptions?: Partial<TipTapStarterKitOptions>): readonly RichTextExtension[]

mocanvas's default TipTap extension set, with StarterKit configured.

Returns TipTap Extension instances when the peer dependency is installed. When it is not, it returns the description-driven default set instead — the same list tipTapDefaultExtensions holds — so a caller that only wanted to pass something to textOptions.tipTapConfig.extensions still gets a working configuration rather than a crash. A caller that genuinely needs live TipTap extensions can tell the two apart: the descriptions carry a kind field and real extensions do not.

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.