handleNativeOrMenuCopy

See source code

When the user copies or cuts, write the contents to the clipboard.

function handleNativeOrMenuCopy(
  editor: Editor,
  context?: TLClipboardWriteInfo,
): Promise<boolean>;

Parameters

NameDescription

editor

Editor;

context

Returns

Promise<boolean>;
Prev
getUncroppedSize
Next
hideAllTooltips