@capillarytech/creatives-library 7.17.151 → 7.17.152
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/package.json
CHANGED
|
@@ -197,7 +197,11 @@ class Ckeditor extends React.Component { // eslint-disable-line react/prefer-sta
|
|
|
197
197
|
}
|
|
198
198
|
this.setState({ content }, () => {
|
|
199
199
|
if (this.editorInstance) {
|
|
200
|
-
|
|
200
|
+
// Check if the current editor content is different from the new content
|
|
201
|
+
const currentEditorData = this.editorInstance.getData();
|
|
202
|
+
if (currentEditorData !== content) {
|
|
203
|
+
this.editorInstance.setData(content);
|
|
204
|
+
}
|
|
201
205
|
}
|
|
202
206
|
});
|
|
203
207
|
}
|