@flozy/editor 1.1.8 → 1.1.9
Sign up to get free protection for your applications and to get access to all the features.
@@ -102,9 +102,10 @@ const CommonEditor = props => {
|
|
102
102
|
};
|
103
103
|
const updateChanges = newValue => {
|
104
104
|
const stringify = JSON.stringify(newValue);
|
105
|
-
|
105
|
+
const text = serialize(newValue);
|
106
|
+
if (stringify !== lastUpdated && count > 0 && text?.trim().length > 3) {
|
106
107
|
onSave(stringify, {
|
107
|
-
text:
|
108
|
+
text: text
|
108
109
|
});
|
109
110
|
setLastUpdated(stringify);
|
110
111
|
}
|