@flexiui/svelte-rich-text 0.0.73 → 0.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RichText.svelte +5 -1
- package/package.json +1 -1
package/dist/RichText.svelte
CHANGED
|
@@ -227,6 +227,8 @@
|
|
|
227
227
|
editorConfig.toolbarJustifyContent = "flex-end";
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
+
let focused = $state(false);
|
|
231
|
+
|
|
230
232
|
let bubbleOffset =
|
|
231
233
|
$editor?.storage.tableCell.customTableSelection === "column" ? 18 : 8;
|
|
232
234
|
|
|
@@ -571,9 +573,11 @@
|
|
|
571
573
|
},
|
|
572
574
|
|
|
573
575
|
onFocus({ editor, event }) {
|
|
576
|
+
focused = true;
|
|
574
577
|
editorEvents.onFocus({ editor, event });
|
|
575
578
|
},
|
|
576
579
|
onBlur({ editor, event }) {
|
|
580
|
+
focused = false;
|
|
577
581
|
editorEvents.onBlur({ editor, event });
|
|
578
582
|
},
|
|
579
583
|
onDestroy() {
|
|
@@ -1274,7 +1278,7 @@ function onOpenChangeHighlight(open: boolean) {
|
|
|
1274
1278
|
{/if}
|
|
1275
1279
|
</div>
|
|
1276
1280
|
|
|
1277
|
-
{#if editor}
|
|
1281
|
+
{#if editor && focused}
|
|
1278
1282
|
<div class="hidden">
|
|
1279
1283
|
<BubbleMenu
|
|
1280
1284
|
options={{
|