From c164b19f48c1a73de58286290d1269e534f3ad02 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 10 Nov 2022 00:09:26 +0800 Subject: [PATCH] :bug: fix https://github.com/siyuan-note/siyuan/issues/6501 --- 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 c73545bfe..ed33b0855 100644 --- a/app/src/protyle/toolbar/index.ts +++ b/app/src/protyle/toolbar/index.ts @@ -338,7 +338,7 @@ export class Toolbar { const types = item.getAttribute("data-type").split(" "); if (type === "clear") { for (let i = 0; i < types.length; i++) { - if (Constants.INLINE_TYPE.includes(types[i])) { + if (["kbd", "text", "strong", "em", "u", "s", "mark", "sup", "sub", "code"].includes(types[i])) { types.splice(i, 1); i--; }