@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.
@@ -126,12 +126,12 @@ const ChatEditor = /*#__PURE__*/forwardRef((props, ref) => {
126
126
  }
127
127
  }
128
128
  }));
129
- useEffect(() => {
130
- setIsExternalUpdate(true);
131
- setValue(draftToSlate({
132
- data: content
133
- }));
134
- }, [content]);
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
- if (isExternalUpdate) {
198
- setIsExternalUpdate(false);
199
- return;
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 => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "3.9.3",
3
+ "version": "3.9.5",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"