mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-20 11:00:52 +08:00
This commit is contained in:
parent
139c16b25b
commit
c9887449b1
@ -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)];
|
||||||
|
Loading…
Reference in New Issue
Block a user