diff --git a/ts/editable/Mathjax.svelte b/ts/editable/Mathjax.svelte index 3900fe46f..3642ef27c 100644 --- a/ts/editable/Mathjax.svelte +++ b/ts/editable/Mathjax.svelte @@ -24,10 +24,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html $: { encoded = encodeURIComponent(converted); - - setTimeout(() => { - imageHeight = image.getBoundingClientRect().height; - }); + setTimeout(() => (imageHeight = image.getBoundingClientRect().height)); } let image: HTMLImageElement; diff --git a/ts/editor/HandleBackground.svelte b/ts/editor/HandleBackground.svelte index 0f98f907c..ad06d50a6 100644 --- a/ts/editor/HandleBackground.svelte +++ b/ts/editor/HandleBackground.svelte @@ -5,7 +5,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html - + {#if activeImage} (dropdownApi = createDropdown(event.detail.selection))} > - + @@ -72,7 +78,10 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html { + await onEditorUpdate(event); + dropdownObject.update(); + }} />
@@ -80,10 +89,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html { - updateSelection(); - scheduleDropdownUpdate(); - }} + on:click={updateSelection} />