@mocanvas/mocanvas · function

defaultHandleExternalSvgTextContent

declare function defaultHandleExternalSvgTextContent(editor: Editor, info: {
    text: string;
} & AtPoint): Promise<void>

SVG markup: one image shape backed by an inline SVG asset.

The markup is sanitized first, and dropped entirely when nothing safe is left — pasted SVG is the single most dangerous thing that can arrive on a canvas, because it can carry script.

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.