vue-editify 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
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) => {
@@ -22648,7 +22632,7 @@ const i18n = (locale) => {
22648
22632
  return translations[locale][key];
22649
22633
  };
22650
22634
  };
22651
- const version = "0.0.15";
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));