diff --git a/ts/editor/ClozeButton.svelte b/ts/editor/ClozeButton.svelte index fe06ce54e..2068b8930 100644 --- a/ts/editor/ClozeButton.svelte +++ b/ts/editor/ClozeButton.svelte @@ -47,7 +47,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/ts/editor/TagEditor.svelte b/ts/editor/TagEditor.svelte index ee08f476b..04166a625 100644 --- a/ts/editor/TagEditor.svelte +++ b/ts/editor/TagEditor.svelte @@ -378,7 +378,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html {#if !wrap} tag.selected)} bind:badgeHeight on:tagselectall={selectAllTags} @@ -389,7 +389,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html {/if} - + {@html functionIcon} diff --git a/ts/editor/tagEditor.ts b/ts/editor/tagEditor.ts index 4f1c3733c..6e71f09b0 100644 --- a/ts/editor/tagEditor.ts +++ b/ts/editor/tagEditor.ts @@ -6,14 +6,11 @@ @typescript-eslint/no-explicit-any: "off", */ -import { disabledKey, nightModeKey } from "components/context-keys"; -import { writable } from "svelte/store"; +import { nightModeKey } from "components/context-keys"; import TagEditor from "./TagEditor.svelte"; import "./bootstrap.css"; -const disabled = writable(false); - export function initTagEditor(i18n: Promise): Promise { let tagEditorResolve: (value: TagEditor) => void; const tagEditorPromise = new Promise((resolve) => { @@ -26,7 +23,6 @@ export function initTagEditor(i18n: Promise): Promise { const anchor = document.getElementById("tag-editor-anchor")!; const context = new Map(); - context.set(disabledKey, disabled); context.set( nightModeKey, document.documentElement.classList.contains("night-mode")