vuewrite 0.0.22 → 0.0.23
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/dist/vuewrite.js +3 -4
- package/package.json +2 -3
package/dist/vuewrite.js
CHANGED
|
@@ -898,13 +898,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
898
898
|
return;
|
|
899
899
|
} else {
|
|
900
900
|
for (let i = store.blocks.length; i < newValue.length; i++) {
|
|
901
|
-
store.blocks.push({ id: uid(), text: ""
|
|
901
|
+
store.blocks.push({ id: uid(), text: "" });
|
|
902
902
|
}
|
|
903
903
|
store.blocks.length = newValue.length;
|
|
904
904
|
for (let i = 0; i < newValue.length; i++) {
|
|
905
|
-
store.blocks[i]
|
|
906
|
-
store.blocks[i].type = newValue[i].type;
|
|
907
|
-
store.blocks[i].styles = newValue[i].styles;
|
|
905
|
+
store.blocks[i] = { ...newValue[i], id: uid() };
|
|
908
906
|
}
|
|
909
907
|
}
|
|
910
908
|
}, { immediate: true });
|
|
@@ -925,6 +923,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
925
923
|
emit("update:styles", styles);
|
|
926
924
|
emit("update:modelValue", modelValue);
|
|
927
925
|
} else {
|
|
926
|
+
modelValue = store.blocks;
|
|
928
927
|
emit("update:modelValue", store.blocks);
|
|
929
928
|
}
|
|
930
929
|
}, { deep: true });
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "vuewrite",
|
|
3
3
|
"description": "Rich Text Editor based on Vue3 reactivity",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.23",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"author": "den59k",
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
"preview": "vite preview"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"vue": "^3"
|
|
23
|
-
"vuewrite": "^0.0.19"
|
|
22
|
+
"vue": "^3"
|
|
24
23
|
},
|
|
25
24
|
"devDependencies": {
|
|
26
25
|
"@vitejs/plugin-vue": "^5.0.4",
|