@mocanvas/mocanvas · function

defaultHandleExternalExcalidrawContent

declare function defaultHandleExternalExcalidrawContent(editor: Editor, info: {
    content: unknown;
    point?: VecLike;
}): Promise<void>

The default handler for Excalidraw content arriving on the clipboard.

A thin wrapper over putExcalidrawContent that ignores content which is not actually Excalidraw's, so it is safe to register unconditionally.

Mentioned here

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.