@flexiui/svelte-rich-text 0.0.13 → 0.0.15

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.
@@ -1,5 +1,5 @@
1
1
  <script lang="ts">
2
- import { exampleJSONContent, HEADINGS } from './utils';
2
+ import { HEADINGS } from './utils';
3
3
  import "./styles.css";
4
4
 
5
5
  import { onMount, onDestroy } from "svelte";
@@ -99,19 +99,14 @@
99
99
  let tooltipVisible = $state(false);
100
100
  let tooltipX = $state(0);
101
101
  let tooltipY = $state(0);
102
- let tooltip: HTMLDivElement = $state(null) as HTMLDivElement;
102
+ let tooltip: HTMLDivElement = null as HTMLDivElement;
103
103
  let cleanup: () => void;
104
104
  let currentTriggerEl: HTMLElement | null = null;
105
105
  let activeDropdownType = $state(null);
106
106
 
107
- let currentJSON = {
108
- type: "doc",
109
- content: exampleJSONContent,
110
- };
111
-
112
- if (!content) {
113
- content = currentJSON;
114
- }
107
+ // if (!content) {
108
+ // content = exampleJSONDoc;
109
+ // }
115
110
 
116
111
  function toogleDropdown(el: HTMLElement, type: string = null) {
117
112
  if (!el) return;
@@ -725,6 +720,7 @@
725
720
  {/if}
726
721
 
727
722
  <EditorContent editor={$editor} class="fl-rich-text-content" />
723
+ </div>
728
724
 
729
725
  <div
730
726
  class="fl-toolbar-dropdown-panel"
@@ -825,7 +821,6 @@
825
821
 
826
822
  {/if}
827
823
  </div>
828
- </div>
829
824
 
830
825
  <style>
831
826
  .flex-auto {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexiui/svelte-rich-text",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "A lightweight and flexible rich text editor component for Svelte",
5
5
  "keywords": [
6
6
  "svelte",