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)];