@mocanvas/mocanvas · function
declare function registerRichTextEditorFactory(factory: RichTextEditorFactory | null): () => voidInstall the WYSIWYG editing surface used when a label is being edited.
An app that already depends on TipTap registers a factory that builds a
TipTap editor from options.extensions; without one, mocanvas edits labels
with a plain <textarea> over the text projection of the document. Returns a
function that removes the factory again (only if it is still the registered
one), so tests can install and undo one.
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.