mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-20 23:36:10 +01:00
This commit is contained in:
parent
3aaae78cb7
commit
fb4db3d745
1 changed files with 2 additions and 1 deletions
|
|
@ -1448,7 +1448,8 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
selectsElement.push(nodeElement);
|
||||
}
|
||||
selectsElement.forEach(item => {
|
||||
item.querySelectorAll('[contenteditable="true"]').forEach(editItem => {
|
||||
// 不能使用 [contenteditable="true"], 否则嵌入块无法复制
|
||||
item.querySelectorAll("[spellcheck]").forEach(editItem => {
|
||||
const cloneNode = editItem.cloneNode(true) as HTMLElement;
|
||||
cloneNode.querySelectorAll('[data-type="backslash"]').forEach(slashItem => {
|
||||
slashItem.firstElementChild.remove();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue