vue-editify 0.0.14 → 0.0.16

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/lib/editify.es.js CHANGED
@@ -15216,24 +15216,8 @@ const blockIsTask = (element2) => {
15216
15216
  return element2.type == "block" && element2.parsedom == "div" && element2.hasMarks() && element2.marks.hasOwnProperty("data-editify-task");
15217
15217
  };
15218
15218
  const blockToParagraph = (element2) => {
15219
- if (blockIsList(element2, true) || blockIsList(element2, false)) {
15220
- let marks = {};
15221
- for (let key in element2.marks) {
15222
- if (key != "data-editify-list" && key != "data-editify-value") {
15223
- marks[key] = element2.marks[key];
15224
- }
15225
- }
15226
- element2.marks = marks;
15227
- }
15228
- if (blockIsTask(element2)) {
15229
- let marks = {};
15230
- for (let key in element2.marks) {
15231
- if (key != "data-editify-task") {
15232
- marks[key] = element2.marks[key];
15233
- }
15234
- }
15235
- element2.marks = marks;
15236
- }
15219
+ element2.marks = null;
15220
+ element2.styles = null;
15237
15221
  element2.parsedom = AlexElement.BLOCK_NODE;
15238
15222
  };
15239
15223
  const blockToList = (element2, ordered = false) => {
@@ -20967,7 +20951,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
20967
20951
  ], 14, _hoisted_1$1);
20968
20952
  }
20969
20953
  const Menu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-4c7850ff"]]);
20970
- const Editify_vue_vue_type_style_index_0_scoped_82396597_lang = "";
20954
+ const Editify_vue_vue_type_style_index_0_scoped_ee4c1326_lang = "";
20971
20955
  const _sfc_main = {
20972
20956
  name: "editify",
20973
20957
  props: { ...editorProps },
@@ -22400,7 +22384,7 @@ const _sfc_main = {
22400
22384
  }
22401
22385
  const elements = this.editor.parseHtml(html);
22402
22386
  for (let i = 0; i < elements.length; i++) {
22403
- this.editor.insertElement(elements[i]);
22387
+ this.editor.insertElement(elements[i], false);
22404
22388
  }
22405
22389
  this.editor.formatElementStack();
22406
22390
  this.editor.domRender();
@@ -22469,7 +22453,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
22469
22453
  ])) : createCommentVNode("", true)
22470
22454
  ]);
22471
22455
  }
22472
- const Editify = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-82396597"]]);
22456
+ const Editify = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-ee4c1326"]]);
22473
22457
  const iconfont = "";
22474
22458
  const en_US = {
22475
22459
  textWrapUp: "Up feed",
@@ -22648,7 +22632,7 @@ const i18n = (locale) => {
22648
22632
  return translations[locale][key];
22649
22633
  };
22650
22634
  };
22651
- const version = "0.0.14";
22635
+ const version = "0.0.16";
22652
22636
  const install = (app, props) => {
22653
22637
  const locale = (props ? props.locale : "zh_CN") || "zh_CN";
22654
22638
  app.provide("$editTrans", i18n(locale));