From c9887449b15024b1256c48d87c9944eaec5228c6 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 13 Sep 2022 10:26:15 +0800 Subject: [PATCH] :sparkles: https://github.com/siyuan-note/siyuan/issues/2911 --- 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 24985b89c..8d4cfd988 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)];