mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-14 19:18:06 +01:00
This commit is contained in:
parent
8a8f9f9dd4
commit
1ce1686a54
2 changed files with 0 additions and 5 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue