mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-27 03:48:48 +01:00
This commit is contained in:
parent
070afd6ec0
commit
39eacc22f5
1 changed files with 2 additions and 7 deletions
|
|
@ -159,13 +159,8 @@ ${unicode2Emoji(emoji.unicode)}</button>`;
|
|||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue