mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-14 16:11:00 +08:00
This commit is contained in:
parent
9ebce975f3
commit
c164b19f48
@ -338,7 +338,7 @@ export class Toolbar {
|
|||||||
const types = item.getAttribute("data-type").split(" ");
|
const types = item.getAttribute("data-type").split(" ");
|
||||||
if (type === "clear") {
|
if (type === "clear") {
|
||||||
for (let i = 0; i < types.length; i++) {
|
for (let i = 0; i < types.length; i++) {
|
||||||
if (Constants.INLINE_TYPE.includes(types[i])) {
|
if (["kbd", "text", "strong", "em", "u", "s", "mark", "sup", "sub", "code"].includes(types[i])) {
|
||||||
types.splice(i, 1);
|
types.splice(i, 1);
|
||||||
i--;
|
i--;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user