@flexiui/svelte-rich-text 0.0.78 → 0.0.79
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 +4 -4
- package/dist/Toolbar/action-buttons/ClearFormatting.svelte +1 -0
- package/dist/Toolbar/action-buttons/ClearNodes.svelte +1 -0
- package/dist/Toolbar/action-buttons/marks/FontSize.svelte +2 -2
- package/dist/Toolbar/action-buttons/marks/TextAlign.svelte +1 -0
- package/dist/Toolbar/action-buttons/nodes/Blockquote.svelte +2 -1
- package/dist/Toolbar/action-buttons/nodes/CodeBlock.svelte +2 -1
- package/dist/Toolbar/action-buttons/nodes/HorizontalRule.svelte +1 -0
- package/dist/Toolbar/action-buttons/nodes/Image.svelte +1 -0
- package/dist/Toolbar/action-buttons/nodes/InlineMath.svelte +1 -0
- package/dist/Toolbar/action-buttons/nodes/ListBtn.svelte +1 -0
- package/dist/Toolbar/action-buttons/nodes/MediaGridBtn.svelte +1 -0
- package/dist/Toolbar/action-buttons/nodes/Table.svelte +1 -0
- package/package.json +1 -1
package/dist/RichText.svelte
CHANGED
|
@@ -608,13 +608,13 @@
|
|
|
608
608
|
|
|
609
609
|
focused = false;
|
|
610
610
|
|
|
611
|
-
const { state, view } = editor;
|
|
611
|
+
// const { state, view } = editor;
|
|
612
612
|
|
|
613
|
-
const pos = state.selection.to;
|
|
613
|
+
// const pos = state.selection.to;
|
|
614
614
|
|
|
615
|
-
const tr = state.tr.setSelection(TextSelection.create(state.doc, pos));
|
|
615
|
+
// const tr = state.tr.setSelection(TextSelection.create(state.doc, pos));
|
|
616
616
|
|
|
617
|
-
view.dispatch(tr);
|
|
617
|
+
// view.dispatch(tr);
|
|
618
618
|
|
|
619
619
|
editorEvents.onBlur({ editor, event });
|
|
620
620
|
},
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
let {
|
|
5
5
|
editor,
|
|
6
6
|
accenSoft = false,
|
|
7
|
-
ariaLabel = "
|
|
7
|
+
ariaLabel = "Font size",
|
|
8
8
|
fontSize
|
|
9
9
|
} = $props();
|
|
10
10
|
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
</script>
|
|
52
52
|
|
|
53
|
-
<div class="fl-font-size-editor">
|
|
53
|
+
<div class="fl-font-size-editor fl-bubble-menu-mark-button">
|
|
54
54
|
<button
|
|
55
55
|
type="button"
|
|
56
56
|
aria-label="Decrease font size"
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
</script>
|
|
4
4
|
|
|
5
5
|
<button
|
|
6
|
+
class="fl-bubble-menu-mark-button"
|
|
6
7
|
type="button"
|
|
7
8
|
onclick={() => $editor.chain().focus().toggleBlockquote().run()}
|
|
8
|
-
class={$editor.isActive("blockquote")
|
|
9
|
+
class:is-active={$editor.isActive("blockquote")}
|
|
9
10
|
aria-label={ariaLabel}
|
|
10
11
|
class:accent-soft={accenSoft}
|
|
11
12
|
>
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
<!-- Code block -->
|
|
6
6
|
<button
|
|
7
|
+
class="fl-bubble-menu-mark-button"
|
|
7
8
|
type="button"
|
|
8
9
|
onclick={() => $editor.chain().focus().toggleCodeBlock().run()}
|
|
9
|
-
class={$editor.isActive("codeBlock")
|
|
10
|
+
class:is-active={$editor.isActive("codeBlock")}
|
|
10
11
|
aria-label={ariaLabel}
|
|
11
12
|
class:accent-soft={accenSoft}
|
|
12
13
|
>
|