Vanessa 2022-09-13 10:26:15 +08:00
parent 139c16b25b
commit c9887449b1

View file

@ -172,7 +172,7 @@ export class Toolbar {
} }
range.cloneContents().childNodes.forEach((item:HTMLElement) => { range.cloneContents().childNodes.forEach((item:HTMLElement) => {
if (item.nodeType !== 3) { if (item.nodeType !== 3) {
types = types.concat(item.getAttribute("data--type").split(" ")); types = types.concat(item.getAttribute("data-type").split(" "));
} }
}); });
types = [...new Set(types)]; types = [...new Set(types)];