From e392e2b521a9a628d58fc492b5b9d18c863775fa Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 13 Feb 2026 10:57:58 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/17024 --- app/src/protyle/toolbar/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index a1ba01173..61341f373 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -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");