putExcalidrawContent

See source code

Put excalidraw clipboard content onto the current page.

function putExcalidrawContent(
  editor: Editor,
  excalidrawClipboardContent: any,
  point?: VecLike,
): Promise<void>;

Parameters

NameDescription

editor

Editor;

The editor instance.

excalidrawClipboardContent

any;

The excalidraw clipboard model.

point

VecLike;

The point at which to put the excalidraw content.

Returns

Promise<void>;
Prev
preloadFont
Next
registerDefaultExternalContentHandlers