mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-14 11:14:21 +01:00
This commit is contained in:
parent
96bc21093a
commit
e392e2b521
1 changed files with 2 additions and 1 deletions
|
|
@ -1103,7 +1103,6 @@ export class Toolbar {
|
|||
}
|
||||
});
|
||||
this.subElementCloseCB = () => {
|
||||
protyle.wysiwyg.element.focus({ preventScroll: true});
|
||||
if (!renderElement.parentElement || protyle.disabled ||
|
||||
(oldTextValue === textElement.value && textElement.value)) {
|
||||
if (renderElement.tagName === "SPAN") {
|
||||
|
|
@ -1116,6 +1115,7 @@ export class Toolbar {
|
|||
focusBlock(renderElement);
|
||||
renderElement.classList.add("protyle-wysiwyg--select");
|
||||
}
|
||||
protyle.wysiwyg.element.focus({ preventScroll: true});
|
||||
return;
|
||||
}
|
||||
let inlineLastNode: Element;
|
||||
|
|
@ -1221,6 +1221,7 @@ export class Toolbar {
|
|||
}
|
||||
}
|
||||
updateTransaction(protyle, id, nodeElement.outerHTML, html);
|
||||
protyle.wysiwyg.element.focus({ preventScroll: true});
|
||||
};
|
||||
this.subElement.style.zIndex = (++window.siyuan.zIndex).toString();
|
||||
this.subElement.classList.remove("fn__none");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue