Skip to content

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

:sparkles: https://github.com/siyuan-note/siyuan/issues/2911

Vanessac9887449b150
diff --git a/app/src/protyle/toolbar/index.ts b/app/src/protyle/toolbar/index.ts
index 24985b89c5..8d4cfd9882 100644
--- a/app/src/protyle/toolbar/index.ts
+++ b/app/src/protyle/toolbar/index.ts
@@ -172,7 +172,7 @@ export class Toolbar {
}
range.cloneContents().childNodes.forEach((item:HTMLElement) => {
if (item.nodeType !== 3) {
- types = types.concat(item.getAttribute("data--type").split(" "));
+ types = types.concat(item.getAttribute("data-type").split(" "));
}
});
types = [...new Set(types)];