From 39eacc22f5f60ffec5774587d96acbb6c86c134e Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 12 Sep 2023 08:48:38 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9158 --- app/src/protyle/hint/index.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts index e37a0d22a..65013cdac 100644 --- a/app/src/protyle/hint/index.ts +++ b/app/src/protyle/hint/index.ts @@ -159,13 +159,8 @@ ${unicode2Emoji(emoji.unicode)}`; const currentLineValue = protyle.toolbar.range.startContainer.textContent.substring(0, start) || ""; const key = this.getKey(currentLineValue, protyle.options.hint.extend); if (typeof key === "undefined" || - ( // 除 emoji 提示外,其余在 code 内移动不进行提示 https://github.com/siyuan-note/siyuan/issues/9158 - this.splitChar !== ":" && ( - hasClosestByAttribute(protyle.toolbar.range.startContainer, "data-type", "NodeCodeBlock") || - hasClosestByAttribute(protyle.toolbar.range.startContainer, "data-type", "code") - ) - ) - ) { + hasClosestByAttribute(protyle.toolbar.range.startContainer, "data-type", "code") || + hasClosestByAttribute(protyle.toolbar.range.startContainer, "data-type", "NodeCodeBlock")) { this.element.classList.add("fn__none"); clearTimeout(this.timeId); return;