Vanessa 2025-05-12 22:48:04 +08:00
parent 8a8f9f9dd4
commit 1ce1686a54
2 changed files with 0 additions and 5 deletions

View file

@ -175,7 +175,6 @@ export const openEditorTab = (app: App, ids: string[], notebookId?: string, path
export const copyPNGByLink = (link: string) => {
if (isInAndroid()) {
showMessage(link);
window.JSAndroid.writeImageClipboard(link);
} else {
const canvas = document.createElement("canvas");

View file

@ -1570,13 +1570,9 @@ ${item.name}
} else if (action === "paste") {
if (document.queryCommandSupported("paste")) {
document.execCommand("paste");
showMessage("document paste");
} else {
try {
const text = await readClipboard();
showMessage("clipboard textHTML" + text.textHTML);
showMessage("clipboard textPlain" + text.textPlain);
showMessage("clipboard files" + text.files.length);
paste(protyle, Object.assign(text, {target: nodeElement as HTMLElement}));
} catch (e) {
console.log(e);