@tailor-cms/ce-html-edit 0.1.4 → 0.1.5

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,2 +1,2 @@
1
- declare const _default: (import("@tiptap/core").Mark<any, any> | import("@tiptap/core").Extension<any, any> | import("@tiptap/core").Node<import("@tiptap/extension-paragraph").ParagraphOptions, any>)[];
1
+ declare const _default: (import("@tiptap/core").Mark<any, any> | import("@tiptap/core").Extension<any, any> | import("@tiptap/core").Node<import("@tiptap/extension-table-cell").TableCellOptions, any>)[];
2
2
  export default _default;
package/dist/index.cjs CHANGED
@@ -20060,6 +20060,37 @@ var OfficePastePlugin = new Plugin({
20060
20060
  }
20061
20061
  });
20062
20062
  var index_default = OfficePaste;
20063
+ const Paragraph = Node2.create({
20064
+ name: "paragraph",
20065
+ priority: 1e3,
20066
+ addOptions() {
20067
+ return {
20068
+ HTMLAttributes: {}
20069
+ };
20070
+ },
20071
+ group: "block",
20072
+ content: "inline*",
20073
+ parseHTML() {
20074
+ return [
20075
+ { tag: "p" }
20076
+ ];
20077
+ },
20078
+ renderHTML({ HTMLAttributes }) {
20079
+ return ["p", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
20080
+ },
20081
+ addCommands() {
20082
+ return {
20083
+ setParagraph: () => ({ commands: commands2 }) => {
20084
+ return commands2.setNode(this.name);
20085
+ }
20086
+ };
20087
+ },
20088
+ addKeyboardShortcuts() {
20089
+ return {
20090
+ "Mod-Alt-0": () => this.editor.commands.setParagraph()
20091
+ };
20092
+ }
20093
+ });
20063
20094
  const Placeholder = Extension.create({
20064
20095
  name: "placeholder",
20065
20096
  addOptions() {
@@ -21861,37 +21892,6 @@ const OrderedList = Node2.create({
21861
21892
  ];
21862
21893
  }
21863
21894
  });
21864
- const Paragraph$1 = Node2.create({
21865
- name: "paragraph",
21866
- priority: 1e3,
21867
- addOptions() {
21868
- return {
21869
- HTMLAttributes: {}
21870
- };
21871
- },
21872
- group: "block",
21873
- content: "inline*",
21874
- parseHTML() {
21875
- return [
21876
- { tag: "p" }
21877
- ];
21878
- },
21879
- renderHTML({ HTMLAttributes }) {
21880
- return ["p", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
21881
- },
21882
- addCommands() {
21883
- return {
21884
- setParagraph: () => ({ commands: commands2 }) => {
21885
- return commands2.setNode(this.name);
21886
- }
21887
- };
21888
- },
21889
- addKeyboardShortcuts() {
21890
- return {
21891
- "Mod-Alt-0": () => this.editor.commands.setParagraph()
21892
- };
21893
- }
21894
- });
21895
21895
  const inputRegex$1 = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/;
21896
21896
  const pasteRegex = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g;
21897
21897
  const Strike = Mark2.create({
@@ -22011,7 +22011,7 @@ const StarterKit = Extension.create({
22011
22011
  extensions2.push(OrderedList.configure(this.options.orderedList));
22012
22012
  }
22013
22013
  if (this.options.paragraph !== false) {
22014
- extensions2.push(Paragraph$1.configure(this.options.paragraph));
22014
+ extensions2.push(Paragraph.configure(this.options.paragraph));
22015
22015
  }
22016
22016
  if (this.options.strike !== false) {
22017
22017
  extensions2.push(Strike.configure(this.options.strike));
@@ -26396,27 +26396,6 @@ const Link = Link$1.extend({
26396
26396
  };
26397
26397
  }
26398
26398
  });
26399
- const Paragraph = Paragraph$1.extend({
26400
- parseHTML() {
26401
- return [{ tag: "div" }, { tag: "p" }, { tag: "span" }];
26402
- },
26403
- addGlobalAttributes() {
26404
- return [
26405
- {
26406
- types: ["heading", "paragraph"],
26407
- attributes: {
26408
- class: {
26409
- default: null,
26410
- parseHTML: (element) => element.getAttribute("class"),
26411
- renderHTML(attributes) {
26412
- return { class: attributes.class };
26413
- }
26414
- }
26415
- }
26416
- }
26417
- ];
26418
- }
26419
- });
26420
26399
  const Tooltip = Mark2.create({
26421
26400
  name: "tooltip",
26422
26401
  keepOnSplit: false,
package/dist/index.js CHANGED
@@ -20058,6 +20058,37 @@ var OfficePastePlugin = new Plugin({
20058
20058
  }
20059
20059
  });
20060
20060
  var index_default = OfficePaste;
20061
+ const Paragraph = Node2.create({
20062
+ name: "paragraph",
20063
+ priority: 1e3,
20064
+ addOptions() {
20065
+ return {
20066
+ HTMLAttributes: {}
20067
+ };
20068
+ },
20069
+ group: "block",
20070
+ content: "inline*",
20071
+ parseHTML() {
20072
+ return [
20073
+ { tag: "p" }
20074
+ ];
20075
+ },
20076
+ renderHTML({ HTMLAttributes }) {
20077
+ return ["p", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
20078
+ },
20079
+ addCommands() {
20080
+ return {
20081
+ setParagraph: () => ({ commands: commands2 }) => {
20082
+ return commands2.setNode(this.name);
20083
+ }
20084
+ };
20085
+ },
20086
+ addKeyboardShortcuts() {
20087
+ return {
20088
+ "Mod-Alt-0": () => this.editor.commands.setParagraph()
20089
+ };
20090
+ }
20091
+ });
20061
20092
  const Placeholder = Extension.create({
20062
20093
  name: "placeholder",
20063
20094
  addOptions() {
@@ -21859,37 +21890,6 @@ const OrderedList = Node2.create({
21859
21890
  ];
21860
21891
  }
21861
21892
  });
21862
- const Paragraph$1 = Node2.create({
21863
- name: "paragraph",
21864
- priority: 1e3,
21865
- addOptions() {
21866
- return {
21867
- HTMLAttributes: {}
21868
- };
21869
- },
21870
- group: "block",
21871
- content: "inline*",
21872
- parseHTML() {
21873
- return [
21874
- { tag: "p" }
21875
- ];
21876
- },
21877
- renderHTML({ HTMLAttributes }) {
21878
- return ["p", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes), 0];
21879
- },
21880
- addCommands() {
21881
- return {
21882
- setParagraph: () => ({ commands: commands2 }) => {
21883
- return commands2.setNode(this.name);
21884
- }
21885
- };
21886
- },
21887
- addKeyboardShortcuts() {
21888
- return {
21889
- "Mod-Alt-0": () => this.editor.commands.setParagraph()
21890
- };
21891
- }
21892
- });
21893
21893
  const inputRegex$1 = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/;
21894
21894
  const pasteRegex = /(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g;
21895
21895
  const Strike = Mark2.create({
@@ -22009,7 +22009,7 @@ const StarterKit = Extension.create({
22009
22009
  extensions2.push(OrderedList.configure(this.options.orderedList));
22010
22010
  }
22011
22011
  if (this.options.paragraph !== false) {
22012
- extensions2.push(Paragraph$1.configure(this.options.paragraph));
22012
+ extensions2.push(Paragraph.configure(this.options.paragraph));
22013
22013
  }
22014
22014
  if (this.options.strike !== false) {
22015
22015
  extensions2.push(Strike.configure(this.options.strike));
@@ -26394,27 +26394,6 @@ const Link = Link$1.extend({
26394
26394
  };
26395
26395
  }
26396
26396
  });
26397
- const Paragraph = Paragraph$1.extend({
26398
- parseHTML() {
26399
- return [{ tag: "div" }, { tag: "p" }, { tag: "span" }];
26400
- },
26401
- addGlobalAttributes() {
26402
- return [
26403
- {
26404
- types: ["heading", "paragraph"],
26405
- attributes: {
26406
- class: {
26407
- default: null,
26408
- parseHTML: (element) => element.getAttribute("class"),
26409
- renderHTML(attributes) {
26410
- return { class: attributes.class };
26411
- }
26412
- }
26413
- }
26414
- }
26415
- ];
26416
- }
26417
- });
26418
26397
  const Tooltip = Mark2.create({
26419
26398
  name: "tooltip",
26420
26399
  keepOnSplit: false,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Tailor CMS HTML editor authoring component",
4
4
  "author": "Studion <info@gostudion.com> (https://github.com/tailor-cms)",
5
5
  "type": "module",
6
- "version": "0.1.4",
6
+ "version": "0.1.5",
7
7
  "exports": {
8
8
  ".": {
9
9
  "import": "./dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "typescript": "^5.8.3",
27
27
  "vite": "^7.0.3",
28
28
  "vue-tsc": "^3.0.1",
29
- "@tailor-cms/ce-html-manifest": "0.1.4"
29
+ "@tailor-cms/ce-html-manifest": "0.1.5"
30
30
  },
31
31
  "dependencies": {
32
32
  "@intevation/tiptap-extension-office-paste": "^0.1.2",
@@ -1,2 +0,0 @@
1
- declare const _default: import("@tiptap/core").Node<import("@tiptap/extension-paragraph").ParagraphOptions, any>;
2
- export default _default;