diff --git a/ts/editor/cloze.ts b/ts/editor/cloze.ts index 112c393e6..9d3be3530 100644 --- a/ts/editor/cloze.ts +++ b/ts/editor/cloze.ts @@ -10,6 +10,7 @@ import { iconButton } from "editor-toolbar/dynamicComponents"; import bracketsIcon from "./code-brackets.svg"; import { forEditorField } from "."; +import { wrap } from "./wrap"; const clozePattern = /\{\{c(\d+)::/gu; function getCurrentHighestCloze(increment: boolean): number { @@ -32,8 +33,6 @@ function getCurrentHighestCloze(increment: boolean): number { function onCloze(event: MouseEvent): void { const highestCloze = getCurrentHighestCloze(!event.altKey); - - // @ts-expect-error wrap(`{{c${highestCloze}::`, "}}"); }