diff --git a/ts/editor/editor-toolbar/ClozeButtons.svelte b/ts/editor/ClozeButtons.svelte similarity index 72% rename from ts/editor/editor-toolbar/ClozeButtons.svelte rename to ts/editor/ClozeButtons.svelte index 5dd391d2b..f53c969e8 100644 --- a/ts/editor/editor-toolbar/ClozeButtons.svelte +++ b/ts/editor/ClozeButtons.svelte @@ -3,19 +3,18 @@ Copyright: Ankitects Pty Ltd and contributors License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html --> + + diff --git a/ts/editor/editor-toolbar/icons.ts b/ts/editor/editor-toolbar/icons.ts index 0bc292d07..e00a2df79 100644 --- a/ts/editor/editor-toolbar/icons.ts +++ b/ts/editor/editor-toolbar/icons.ts @@ -24,8 +24,6 @@ export { default as underlineIcon } from "bootstrap-icons/icons/type-underline.s export const arrowIcon = ''; -export { default as incrementClozeIcon } from "../../icons/contain-plus.svg"; -export { default as clozeIcon } from "@mdi/svg/svg/contain.svg"; export { default as functionIcon } from "@mdi/svg/svg/function-variant.svg"; export { default as paperclipIcon } from "@mdi/svg/svg/paperclip.svg"; export { default as micIcon } from "bootstrap-icons/icons/mic.svg"; diff --git a/ts/editor/editor-toolbar/index.ts b/ts/editor/editor-toolbar/index.ts index a3e53d674..d85d25bce 100644 --- a/ts/editor/editor-toolbar/index.ts +++ b/ts/editor/editor-toolbar/index.ts @@ -3,3 +3,4 @@ export type { EditorToolbarAPI } from "./EditorToolbar.svelte"; export { default as EditorToolbar, editorToolbar } from "./EditorToolbar.svelte"; +export { default as ClozeButtons } from "./EditorToolbar.svelte"; diff --git a/ts/editor/icons.ts b/ts/editor/icons.ts index 61e00169e..f05de24b0 100644 --- a/ts/editor/icons.ts +++ b/ts/editor/icons.ts @@ -3,8 +3,10 @@ /// +export { default as incrementClozeIcon } from "../icons/contain-plus.svg"; export { default as alertIcon } from "@mdi/svg/svg/alert.svg"; export { default as htmlOn } from "@mdi/svg/svg/code-tags.svg"; +export { default as clozeIcon } from "@mdi/svg/svg/contain.svg"; export { default as richTextOff } from "@mdi/svg/svg/eye-off-outline.svg"; export { default as richTextOn } from "@mdi/svg/svg/eye-outline.svg"; export { default as stickyOff } from "@mdi/svg/svg/pin-off-outline.svg"; diff --git a/ts/editor/mathjax-overlay/MathjaxButtons.svelte b/ts/editor/mathjax-overlay/MathjaxButtons.svelte index 95cc8b2b6..a801572d2 100644 --- a/ts/editor/mathjax-overlay/MathjaxButtons.svelte +++ b/ts/editor/mathjax-overlay/MathjaxButtons.svelte @@ -10,6 +10,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import IconButton from "../../components/IconButton.svelte"; import { hasBlockAttribute } from "../../lib/dom"; import * as tr from "../../lib/ftl"; + import ClozeButtons from "../ClozeButtons.svelte"; import { blockIcon, deleteIcon, inlineIcon } from "./icons"; export let element: Element; @@ -48,6 +49,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html > + + + +