@mocanvas/mocanvas · function

getRichTextExtensions

declare function getRichTextExtensions(editor: Editor | null | undefined): readonly RichTextExtension[]

The rich-text extension list an editor is configured with, or the default set.

Reads both the v5 options.text.tipTapConfig location and the older top-level textOptions, and tolerates an editor that carries neither — an editor built before the text options landed still measures rich text.

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.