smart-editor-v3 1.8.1 → 1.8.2

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.
@@ -5439,7 +5439,7 @@ const Do = Se.create({
5439
5439
  parseHTML: (r) => r.style.lineHeight,
5440
5440
  renderHTML: (r) => r.lineHeight ? {
5441
5441
  style: `line-height: ${r.lineHeight}`
5442
- } : {}
5442
+ } : { style: "line-height: 2" }
5443
5443
  }
5444
5444
  }
5445
5445
  }
@@ -10523,7 +10523,6 @@ const hu = ["id"], bu = { class: "smart-color-picker-default-button" }, vu = { c
10523
10523
  document: s
10524
10524
  })
10525
10525
  ]) : [...Jt({ history: !((C = e.value.history) != null && C.enable) })]
10526
- // onUpdate: throttledOnUpdate,
10527
10526
  });
10528
10527
  t(a);
10529
10528
  function u() {
@@ -11350,7 +11349,7 @@ const hu = ["id"], bu = { class: "smart-color-picker-default-button" }, vu = { c
11350
11349
  disabled: !((s = i(e)) != null && s.can().chain().focus().toggleSuperscript().run()),
11351
11350
  onMenuClick: o[0] || (o[0] = (a) => {
11352
11351
  var u;
11353
- return (u = i(e)) == null ? void 0 : u.commands.toggleSuperscript();
11352
+ return (u = i(e)) == null ? void 0 : u.chain().focus().toggleSuperscript().run();
11354
11353
  })
11355
11354
  }, null, 8, ["text", "menu-active", "disabled"]);
11356
11355
  };
@@ -11371,7 +11370,7 @@ const hu = ["id"], bu = { class: "smart-color-picker-default-button" }, vu = { c
11371
11370
  disabled: !((s = i(e)) != null && s.can().chain().focus().toggleSubscript().run()),
11372
11371
  onMenuClick: o[0] || (o[0] = (a) => {
11373
11372
  var u;
11374
- return (u = i(e)) == null ? void 0 : u.commands.toggleSubscript();
11373
+ return (u = i(e)) == null ? void 0 : u.chain().focus().toggleSubscript().run();
11375
11374
  })
11376
11375
  }, null, 8, ["text", "menu-active", "disabled"]);
11377
11376
  };
@@ -14412,7 +14411,7 @@ const Tp = {
14412
14411
  disabled: !((s = i(e)) != null && s.can().chain().focus().toggleSuperscript().run()),
14413
14412
  onMenuClick: o[0] || (o[0] = (a) => {
14414
14413
  var u;
14415
- return (u = i(e)) == null ? void 0 : u.commands.toggleSuperscript();
14414
+ return (u = i(e)) == null ? void 0 : u.chain().focus().toggleSuperscript().run();
14416
14415
  })
14417
14416
  }, null, 8, ["text", "menu-active", "disabled"]);
14418
14417
  };
@@ -14433,7 +14432,7 @@ const Tp = {
14433
14432
  disabled: !((s = i(e)) != null && s.can().chain().focus().toggleSubscript().run()),
14434
14433
  onMenuClick: o[0] || (o[0] = (a) => {
14435
14434
  var u;
14436
- return (u = i(e)) == null ? void 0 : u.commands.toggleSubscript();
14435
+ return (u = i(e)) == null ? void 0 : u.chain().focus().toggleSubscript().run();
14437
14436
  })
14438
14437
  }, null, 8, ["text", "menu-active", "disabled"]);
14439
14438
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "smart-editor-v3",
3
3
  "type": "module",
4
- "version": "1.8.1",
4
+ "version": "1.8.2",
5
5
  "exports": {
6
6
  ".": {
7
7
  "import": "./dist/smart-editor-package.js"
@@ -22,35 +22,35 @@
22
22
  "dependencies": {
23
23
  "@arco-design/color": "^0.4.0",
24
24
  "@floating-ui/dom": "^1.6.13",
25
- "@tiptap/extension-blockquote": "^2.10.0",
26
- "@tiptap/extension-bold": "^2.10.0",
27
- "@tiptap/extension-bullet-list": "^2.10.0",
28
- "@tiptap/extension-character-count": "^2.10.0",
25
+ "@tiptap/extension-blockquote": "^2.11.7",
26
+ "@tiptap/extension-bold": "^2.11.7",
27
+ "@tiptap/extension-bullet-list": "^2.11.7",
28
+ "@tiptap/extension-character-count": "^2.11.7",
29
29
  "@tiptap/extension-collaboration": "^2.11.7",
30
- "@tiptap/extension-color": "^2.10.0",
31
- "@tiptap/extension-dropcursor": "^2.10.0",
32
- "@tiptap/extension-focus": "^2.10.0",
33
- "@tiptap/extension-font-family": "^2.10.0",
34
- "@tiptap/extension-highlight": "^2.10.0",
35
- "@tiptap/extension-horizontal-rule": "^2.10.0",
36
- "@tiptap/extension-image": "^2.10.0",
37
- "@tiptap/extension-link": "^2.10.0",
38
- "@tiptap/extension-list-item": "^2.10.0",
39
- "@tiptap/extension-list-keymap": "^2.10.0",
40
- "@tiptap/extension-ordered-list": "^2.10.0",
41
- "@tiptap/extension-placeholder": "^2.10.0",
42
- "@tiptap/extension-subscript": "^2.10.0",
43
- "@tiptap/extension-superscript": "^2.10.0",
44
- "@tiptap/extension-table-cell": "^2.10.0",
45
- "@tiptap/extension-table-header": "^2.10.0",
46
- "@tiptap/extension-table-row": "^2.10.0",
47
- "@tiptap/extension-text-align": "^2.10.0",
48
- "@tiptap/extension-text-style": "^2.10.0",
49
- "@tiptap/extension-typography": "^2.10.0",
50
- "@tiptap/extension-underline": "^2.10.0",
30
+ "@tiptap/extension-color": "^2.11.7",
31
+ "@tiptap/extension-dropcursor": "^2.11.7",
32
+ "@tiptap/extension-focus": "^2.11.7",
33
+ "@tiptap/extension-font-family": "^2.11.7",
34
+ "@tiptap/extension-highlight": "^2.11.7",
35
+ "@tiptap/extension-horizontal-rule": "^2.11.7",
36
+ "@tiptap/extension-image": "^2.11.7",
37
+ "@tiptap/extension-link": "^2.11.7",
38
+ "@tiptap/extension-list-item": "^2.11.7",
39
+ "@tiptap/extension-list-keymap": "^2.11.7",
40
+ "@tiptap/extension-ordered-list": "^2.11.7",
41
+ "@tiptap/extension-placeholder": "^2.11.7",
42
+ "@tiptap/extension-subscript": "^2.11.7",
43
+ "@tiptap/extension-superscript": "^2.11.7",
44
+ "@tiptap/extension-table-cell": "^2.11.7",
45
+ "@tiptap/extension-table-header": "^2.11.7",
46
+ "@tiptap/extension-table-row": "^2.11.7",
47
+ "@tiptap/extension-text-align": "^2.11.7",
48
+ "@tiptap/extension-text-style": "^2.11.7",
49
+ "@tiptap/extension-typography": "^2.11.7",
50
+ "@tiptap/extension-underline": "^2.11.7",
51
51
  "@tiptap/pm": "^2.11.7",
52
- "@tiptap/starter-kit": "^2.10.0",
53
- "@tiptap/vue-3": "^2.10.0",
52
+ "@tiptap/starter-kit": "^2.11.7",
53
+ "@tiptap/vue-3": "^2.11.7",
54
54
  "@vueditor/tiptap-extension-handle": "0.1.0-beta.1",
55
55
  "@vueuse/components": "^11.1.0",
56
56
  "@vueuse/core": "^11.0.3",