@flozy/editor 3.9.3 → 3.9.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/Editor/ChatEditor.js +9 -14
- package/package.json +1 -1
@@ -126,12 +126,12 @@ const ChatEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
126
126
|
}
|
127
127
|
}
|
128
128
|
}));
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
129
|
+
|
130
|
+
// useEffect(() => {
|
131
|
+
// setIsExternalUpdate(true);
|
132
|
+
// setValue(draftToSlate({ data: content }));
|
133
|
+
// }, [content]);
|
134
|
+
|
135
135
|
useEffect(() => {
|
136
136
|
if (JSON.stringify(loadedValue) !== JSON.stringify(deboundedValue) && isInteracted && onSave) {
|
137
137
|
const {
|
@@ -194,14 +194,9 @@ const ChatEditor = /*#__PURE__*/forwardRef((props, ref) => {
|
|
194
194
|
});
|
195
195
|
};
|
196
196
|
const handleEditorChange = newValue => {
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
} else {
|
201
|
-
setValue(newValue);
|
202
|
-
if (!isInteracted) {
|
203
|
-
setIsInteracted(true);
|
204
|
-
}
|
197
|
+
setValue(newValue);
|
198
|
+
if (!isInteracted) {
|
199
|
+
setIsInteracted(true);
|
205
200
|
}
|
206
201
|
};
|
207
202
|
const Element = props => {
|