vue-editify 0.0.15 → 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 +3 -19
- package/lib/editify.umd.js +1 -1
- package/package.json +1 -1
- package/src/core/index.js +2 -20
- package/src/index.js +1 -1
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
|
-
|
15220
|
-
|
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.
|
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));
|