mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
System clipboard (#2117)
This commit is contained in:
parent
950ec66907
commit
47dba05c91
7 changed files with 155 additions and 91 deletions
|
@ -12,7 +12,7 @@ import { fileSave } from "browser-nativefs";
|
|||
import { t } from "../i18n";
|
||||
import {
|
||||
copyCanvasToClipboardAsPng,
|
||||
copyCanvasToClipboardAsSvg,
|
||||
copyTextToSystemClipboard,
|
||||
} from "../clipboard";
|
||||
import { serializeAsJSON } from "./json";
|
||||
|
||||
|
@ -317,7 +317,7 @@ export const exportCanvas = async (
|
|||
});
|
||||
return;
|
||||
} else if (type === "clipboard-svg") {
|
||||
copyCanvasToClipboardAsSvg(tempSvg);
|
||||
copyTextToSystemClipboard(tempSvg.outerHTML);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue