@flexiui/svelte-rich-text 0.0.69 → 0.0.71

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.
@@ -101,6 +101,7 @@
101
101
  inlineNodeMode?: boolean;
102
102
  trailingNode?: boolean;
103
103
  cleanMode?: boolean;
104
+ [key: string]: any;
104
105
  }
105
106
 
106
107
  type ToolbarButton =
@@ -394,7 +395,7 @@
394
395
  content,
395
396
  editorProps: {
396
397
  attributes: {
397
- class: cleanMode ? "fl-rich-text-doc-clean" : "fl-rich-text-doc",
398
+ class: `fl-rich-text-doc ${cleanMode ? "fl-rich-text-doc--clean" : ""}`,
398
399
  },
399
400
  handleKeyDown: (view, event) => {
400
401
  if (event.key === "Enter" && !event.ctrlKey) {
@@ -792,8 +793,7 @@ function onOpenChangeHighlight(open: boolean) {
792
793
  <EditorContent
793
794
  as={contentWrapperAs}
794
795
  editor={$editor}
795
- class="fl-rich-text-content {className}"
796
- data-fl-editable="true"
796
+ class={className}
797
797
  {...rest}
798
798
  />
799
799
 
package/dist/styles.css CHANGED
@@ -63,9 +63,10 @@
63
63
  box-sizing: border-box;
64
64
  }
65
65
 
66
- .fl-rich-text-doc-clean {
67
- outline: none;
68
- position: relative;
66
+ .fl-rich-text-doc--clean {
67
+ padding: 0;
68
+ margin: 0;
69
+ max-width: none;
69
70
  }
70
71
 
71
72
  .fl-toolbar-dropdown-panel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flexiui/svelte-rich-text",
3
- "version": "0.0.69",
3
+ "version": "0.0.71",
4
4
  "description": "A lightweight and flexible rich text editor component for Svelte",
5
5
  "keywords": [
6
6
  "svelte",