mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-17 09:30:48 +08:00
This commit is contained in:
parent
1f050f4431
commit
bef6bc6512
@ -291,7 +291,7 @@ export class Toolbar {
|
|||||||
)) {
|
)) {
|
||||||
// 移除
|
// 移除
|
||||||
if (type === "clear") {
|
if (type === "clear") {
|
||||||
toolbarElement.querySelectorAll('[data-type="em"],[data-type="u"],[data-type="s"],[data-type="mark"],[data-type="sup"],[data-type="sub"],[data-type="strong"]').forEach(item => {
|
toolbarElement.querySelectorAll('[data-type="strong"],[data-type="em"],[data-type="u"],[data-type="s"],[data-type="mark"],[data-type="sup"],[data-type="sub"],[data-type="kbd"],[data-type="mark"],[data-type="code"]').forEach(item => {
|
||||||
item.classList.remove("protyle-toolbar__item--current");
|
item.classList.remove("protyle-toolbar__item--current");
|
||||||
});
|
});
|
||||||
} else if (actionBtn) {
|
} else if (actionBtn) {
|
||||||
|
Loading…
Reference in New Issue
Block a user