@mocanvas/editor · type
type TLClipboardPasteRawInfo = {
/** The clipboard data, when the browser gave the paste event one. */
clipboardData: DataTransfer | null;
/** Where the paste should land, in page space. */
point?: VecModel;
/** Which gesture produced the paste. */
source: "keyboard" | "menu";
}The raw clipboard, before the editor has tried to make sense of it.
Handed to TldrawOptions.onClipboardPasteRaw, which is the first thing to
see a paste. Returning false from that hook stops the editor's own parsing,
which is how an app pastes its private format without the canvas guessing at
it first.
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.