mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 14:34:06 +01:00
This commit is contained in:
parent
98455e3b68
commit
58f1cea811
5 changed files with 9 additions and 4 deletions
|
|
@ -27,6 +27,11 @@ export const hideElements = (panels: string[], protyle?: IProtyle, focusHide = f
|
|||
item.classList.remove("protyle-wysiwyg--hl");
|
||||
});
|
||||
}
|
||||
// 不能 remove("protyle-wysiwyg--hl") 否则打开页签的时候 "cb-get-hl" 高亮会被移除
|
||||
if (protyle.gutter && panels.includes("gutterOnly")) {
|
||||
protyle.gutter.element.classList.add("fn__none");
|
||||
protyle.gutter.element.innerHTML = "";
|
||||
}
|
||||
if (protyle.toolbar && panels.includes("toolbar")) {
|
||||
protyle.toolbar.element.classList.add("fn__none");
|
||||
protyle.toolbar.element.style.display = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue