From df24682b2ad3f05c750553510536612affd784cd Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Fri, 6 Aug 2021 04:59:33 +0200 Subject: [PATCH] Make Mathjax menu also a floating dropdown menu like ImageHandle --- ts/editor/MathjaxHandle.svelte | 70 +++++++++++++++++----------------- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/ts/editor/MathjaxHandle.svelte b/ts/editor/MathjaxHandle.svelte index e4e41393e..bdbcda1b4 100644 --- a/ts/editor/MathjaxHandle.svelte +++ b/ts/editor/MathjaxHandle.svelte @@ -3,6 +3,10 @@ Copyright: Ankitects Pty Ltd and contributors License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html --> -{#if activeImage} - - - -
+ {#if activeImage} + createDropdown(event.detail.selection)} > - -
+ event.stopPropagation()} /> - -
-{/if} + + - + +
{ + updateSelection(); + dropdownObject.update(); + }} + > + + + +
+
+ {/if} +