correction for tab theme

This commit is contained in:
2023-12-16 17:14:25 +01:00
parent 5eb4f29120
commit a7b8a846c0
2 changed files with 4 additions and 2 deletions

View File

@ -59,8 +59,10 @@ export const installInterfaceLogic = (app: Editor) => {
tabs[i].addEventListener("click", (event) => {
// Updating the CSS accordingly
tabs[i].classList.add("bg-foreground");
tabs[i].classList.add("text-selection_foreground");
for (let j = 0; j < tabs.length; j++) {
if (j != i) tabs[j].classList.remove("bg-foreground");
if (j != i) tabs[j].classList.remove("text-selection_foreground");
}
app.currentFile().candidate = app.view.state.doc.toString();