Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: fix https://github.com/siyuan-note/siyuan/issues/6501

Vanessac164b19f48c1
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index c73545bfe8..ed33b08554 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--;
}