@websline/system-components 1.3.20 → 1.3.21

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.
@@ -132,9 +132,14 @@
132
132
  });
133
133
 
134
134
  $effect(() => {
135
- if (editor) {
135
+ if (!editor) return;
136
+
137
+ const current = editor.getHTML();
138
+ const next = content ?? "";
139
+
140
+ if (current !== next) {
136
141
  isContentPropUpdate = true;
137
- editor.commands.setContent(content ?? "");
142
+ editor.commands.setContent(next, false);
138
143
  }
139
144
  });
140
145
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websline/system-components",
3
- "version": "1.3.20",
3
+ "version": "1.3.21",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },