Vanessa 2024-01-25 13:12:12 +08:00
parent 98455e3b68
commit 58f1cea811
5 changed files with 9 additions and 4 deletions

View file

@ -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 = "";