@fastkit/vui 0.7.55 → 0.7.56
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/vui.cjs.js
CHANGED
|
@@ -2949,8 +2949,8 @@ const VWysiwygEditor = vue.defineComponent({
|
|
|
2949
2949
|
vue.watch(() => inputControl.canOperation, updateEditable);
|
|
2950
2950
|
vue.watch(() => props.modelValue, modelValue => {
|
|
2951
2951
|
const $editor = editor.value;
|
|
2952
|
-
if (!$editor) return;
|
|
2953
|
-
$editor.commands.setContent(modelValue == null ? '' : modelValue);
|
|
2952
|
+
if (!$editor || $editor.getHTML() === modelValue) return;
|
|
2953
|
+
$editor.commands.setContent(modelValue == null ? '' : modelValue, false);
|
|
2954
2954
|
textRef.value = $editor.getText();
|
|
2955
2955
|
});
|
|
2956
2956
|
const editor = vue3.useEditor({
|
package/dist/vui.cjs.prod.js
CHANGED
|
@@ -2949,8 +2949,8 @@ const VWysiwygEditor = vue.defineComponent({
|
|
|
2949
2949
|
vue.watch(() => inputControl.canOperation, updateEditable);
|
|
2950
2950
|
vue.watch(() => props.modelValue, modelValue => {
|
|
2951
2951
|
const $editor = editor.value;
|
|
2952
|
-
if (!$editor) return;
|
|
2953
|
-
$editor.commands.setContent(modelValue == null ? '' : modelValue);
|
|
2952
|
+
if (!$editor || $editor.getHTML() === modelValue) return;
|
|
2953
|
+
$editor.commands.setContent(modelValue == null ? '' : modelValue, false);
|
|
2954
2954
|
textRef.value = $editor.getText();
|
|
2955
2955
|
});
|
|
2956
2956
|
const editor = vue3.useEditor({
|
package/dist/vui.mjs
CHANGED
|
@@ -2944,8 +2944,8 @@ const VWysiwygEditor = defineComponent({
|
|
|
2944
2944
|
watch(() => inputControl.canOperation, updateEditable);
|
|
2945
2945
|
watch(() => props.modelValue, modelValue => {
|
|
2946
2946
|
const $editor = editor.value;
|
|
2947
|
-
if (!$editor) return;
|
|
2948
|
-
$editor.commands.setContent(modelValue == null ? '' : modelValue);
|
|
2947
|
+
if (!$editor || $editor.getHTML() === modelValue) return;
|
|
2948
|
+
$editor.commands.setContent(modelValue == null ? '' : modelValue, false);
|
|
2949
2949
|
textRef.value = $editor.getText();
|
|
2950
2950
|
});
|
|
2951
2951
|
const editor = useEditor({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fastkit/vui",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.56",
|
|
4
4
|
"description": "@fastkit/vui",
|
|
5
5
|
"buildOptions": {
|
|
6
6
|
"name": "Vui",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"vue": "^3.2.26"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@fastkit/color-scheme": "0.7.
|
|
36
|
-
"@fastkit/icon-font": "0.7.
|
|
37
|
-
"@fastkit/tiny-logger": "0.7.
|
|
38
|
-
"@fastkit/vite-kit": "0.7.
|
|
39
|
-
"@fastkit/vue-kit": "0.7.
|
|
35
|
+
"@fastkit/color-scheme": "0.7.56",
|
|
36
|
+
"@fastkit/icon-font": "0.7.56",
|
|
37
|
+
"@fastkit/tiny-logger": "0.7.56",
|
|
38
|
+
"@fastkit/vite-kit": "0.7.56",
|
|
39
|
+
"@fastkit/vue-kit": "0.7.56",
|
|
40
40
|
"@tiptap/extension-link": "^2.0.0-beta.36",
|
|
41
41
|
"@tiptap/extension-underline": "^2.0.0-beta.23",
|
|
42
42
|
"@tiptap/starter-kit": "^2.0.0-beta.183",
|
package/src/.DS_Store
ADDED
|
Binary file
|
package/src/components/.DS_Store
CHANGED
|
Binary file
|
|
@@ -100,8 +100,12 @@ export const VWysiwygEditor = defineComponent({
|
|
|
100
100
|
() => props.modelValue,
|
|
101
101
|
(modelValue) => {
|
|
102
102
|
const $editor = editor.value;
|
|
103
|
-
if (!$editor) return;
|
|
104
|
-
|
|
103
|
+
if (!$editor || $editor.getHTML() === modelValue) return;
|
|
104
|
+
|
|
105
|
+
$editor.commands.setContent(
|
|
106
|
+
modelValue == null ? '' : modelValue,
|
|
107
|
+
false,
|
|
108
|
+
);
|
|
105
109
|
textRef.value = $editor.getText();
|
|
106
110
|
},
|
|
107
111
|
);
|