mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-25 09:46:10 +01:00
This commit is contained in:
parent
1f5715201f
commit
7408cfb7da
3 changed files with 50 additions and 15 deletions
|
|
@ -76,6 +76,7 @@ import {historyKeydown} from "../../history/keydown";
|
|||
import {zoomOut} from "../../menus/protyle";
|
||||
import {openSearchAV} from "../../protyle/render/av/relation";
|
||||
import * as dayjs from "dayjs";
|
||||
import {getPlainText} from "../../protyle/util/paste";
|
||||
|
||||
const switchDialogEvent = (app: App, event: MouseEvent) => {
|
||||
event.preventDefault();
|
||||
|
|
@ -488,10 +489,7 @@ const editKeydown = (app: App, event: KeyboardEvent) => {
|
|||
selectsElement.push(nodeElement);
|
||||
}
|
||||
selectsElement.forEach(item => {
|
||||
// 不能使用 [contenteditable="true"], 否则嵌入块无法复制
|
||||
item.querySelectorAll("[spellcheck]").forEach(editItem => {
|
||||
html += editItem.textContent + "\n";
|
||||
});
|
||||
html += getPlainText(item) + "\n";
|
||||
});
|
||||
copyPlainText(html.trimEnd());
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue