mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
update pdf page to clipboard
This commit is contained in:
@@ -31,6 +31,7 @@ if(!text) {
|
||||
return;
|
||||
}
|
||||
pdfDoc.destroy();
|
||||
|
||||
window.navigator.clipboard.writeText(text.items.map(t=>t.str).join("\n"));
|
||||
window.navigator.clipboard.writeText(
|
||||
text.items.reduce((acc, cur) => acc + cur.str.replace(/\x00/ug, '') + (cur.hasEOL ? "\n" : ""),"")
|
||||
);
|
||||
new Notice("Page text is available on the clipboard");
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user