dispatch("reset")} on:moveoutstart on:moveoutend let:editor={mathjaxEditor} > dispatch("moveoutend")} /> { placeCaretAfter(element); element.remove(); dispatch("reset"); }} on:surround={async ({ detail }) => { const editor = await mathjaxEditor.editor; const { prefix, suffix } = detail; editor.replaceSelection(prefix + editor.getSelection() + suffix); }} />