@mhamz.01/easyflow-texteditor 0.1.113 → 0.1.114

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/index.mjs CHANGED
@@ -1281,7 +1281,6 @@ import { Highlight } from "@tiptap/extension-highlight";
1281
1281
  import { Subscript } from "@tiptap/extension-subscript";
1282
1282
  import { Superscript } from "@tiptap/extension-superscript";
1283
1283
  import { Gapcursor, Selection as Selection2 } from "@tiptap/extensions";
1284
- import { TextStyleKit } from "@tiptap/extension-text-style";
1285
1284
 
1286
1285
  // node_modules/@tiptap/extension-document/dist/index.js
1287
1286
  import { Node } from "@tiptap/core";
@@ -1317,7 +1316,6 @@ var Text = Node2.create({
1317
1316
  var index_default2 = Text;
1318
1317
 
1319
1318
  // src/components/tiptap-templates/simple/simple-editor.tsx
1320
- import { TextStyle } from "@tiptap/extension-text-style";
1321
1319
  import Color from "@tiptap/extension-color";
1322
1320
  import { TableKit } from "@tiptap/extension-table";
1323
1321
  import { Dropcursor } from "@tiptap/extensions";
@@ -7013,7 +7011,7 @@ function FontFamilyDropdown() {
7013
7011
  const currentFont = getCurrentFontLabel();
7014
7012
  const applyFont = (family) => {
7015
7013
  if (!editor) return;
7016
- editor.chain().focus().updateAttributes(editor.getAttributes("heading") ? "heading" : "paragraph", {
7014
+ editor.chain().focus().updateAttributes(editor.state.selection.$from.parent.type.name, {
7017
7015
  fontFamily: family
7018
7016
  }).run();
7019
7017
  };
@@ -7747,16 +7745,15 @@ function SimpleEditor() {
7747
7745
  enableClickSelection: true
7748
7746
  }
7749
7747
  }),
7750
- Heading.extend({}),
7751
- Blockquote.extend({}),
7752
- ListItem.extend({}),
7753
- TaskItem.extend({}),
7748
+ CustomHeading,
7749
+ CustomBlockquote,
7750
+ CustomListItem,
7751
+ CustomTaskItem,
7754
7752
  HorizontalRule,
7755
7753
  index_default,
7756
7754
  Paragraph,
7757
7755
  index_default2,
7758
7756
  Gapcursor,
7759
- TextStyle,
7760
7757
  FontSizeStepper.configure({ step: 2, min: 8, defaultSize: 16 }),
7761
7758
  Color.configure({ types: [
7762
7759
  "textStyle",
@@ -7769,7 +7766,6 @@ function SimpleEditor() {
7769
7766
  TableKit.configure({
7770
7767
  table: { resizable: true }
7771
7768
  }),
7772
- TextStyleKit,
7773
7769
  TextAlign.configure({ types: ["heading", "paragraph"] }),
7774
7770
  Highlight.configure({ multicolor: true }),
7775
7771
  Image,