diff --git a/qt/aqt/editor.py b/qt/aqt/editor.py index 2ffac9ae5..ac5a68a34 100644 --- a/qt/aqt/editor.py +++ b/qt/aqt/editor.py @@ -1260,12 +1260,6 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too def insertMathjaxChemistry(self) -> None: self.web.eval("wrap('\\\\(\\\\ce{', '}\\\\)');") - def toggleCloseHTMLTags(self) -> None: - self.mw.col.set_config( - "closeHTMLTags", - not self.mw.col.get_config("closeHTMLTags", True), - ) - def setTagsCollapsed(self, collapsed: bool) -> None: aqt.mw.pm.set_tags_collapsed(self.editorMode, collapsed) @@ -1295,7 +1289,6 @@ require("anki/ui").loaded.then(() => require("anki/NoteEditor").instances[0].too mathjaxInline=Editor.insertMathjaxInline, mathjaxBlock=Editor.insertMathjaxBlock, mathjaxChemistry=Editor.insertMathjaxChemistry, - toggleCloseHTMLTags=Editor.toggleCloseHTMLTags, addImageForOcclusion=Editor.select_image_and_occlude, addImageForOcclusionFromClipboard=Editor.select_image_from_clipboard_and_occlude, ) diff --git a/ts/routes/editor/NoteEditor.svelte b/ts/routes/editor/NoteEditor.svelte index 3a282fbc3..9385cc277 100644 --- a/ts/routes/editor/NoteEditor.svelte +++ b/ts/routes/editor/NoteEditor.svelte @@ -645,8 +645,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html setTagsCollapsed(await getMeta(tagsCollapsedMetaKey)); setMathjaxEnabled((await getColConfig("renderMathjax")) ?? true); setShrinkImages((await getColConfig("shrinkEditorImages")) ?? true); - // TODO: closeHTMLTags col config - setCloseHTMLTags(true); + setCloseHTMLTags((await getColConfig("closeHTMLTags")) ?? true); if (mode === "add") { setSticky(notetype.fields.map((field) => field.config?.sticky ?? false)); } diff --git a/ts/routes/editor/editor-toolbar/OptionsButton.svelte b/ts/routes/editor/editor-toolbar/OptionsButton.svelte index 42a855688..b2bc3c983 100644 --- a/ts/routes/editor/editor-toolbar/OptionsButton.svelte +++ b/ts/routes/editor/editor-toolbar/OptionsButton.svelte @@ -4,7 +4,6 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html -->