From 86095cdbb9d20fdbbf4004c0871eba49905477f8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Mon, 19 Sep 2022 08:43:28 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/insider/issues/1044 --- app/src/protyle/toolbar/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts index 539ec4325..13e5902f8 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -234,7 +234,7 @@ export class Toolbar { } public setInlineMark(protyle: IProtyle, type: string, action: "range" | "toolbar", textObj?: ITextOption) { - if (["text", "a", "block-ref", "inline-math", "inline-memo"].includes(type)) { + if (["a", "block-ref", "inline-math", "inline-memo"].includes(type)) { protyle.toolbar.element.querySelector(`[data-type="${type}"]`).dispatchEvent(new CustomEvent("block-ref" === type ? getEventName() : "click")); return; }