@flozy/editor 9.9.9 → 10.0.1

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.
@@ -95,7 +95,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
95
95
  site_id,
96
96
  page_title,
97
97
  content,
98
- onSave,
98
+ onSave = () => {},
99
99
  editor: collaborativeEditor,
100
100
  readOnly,
101
101
  otherProps,
@@ -359,9 +359,7 @@ const CommonEditor = /*#__PURE__*/forwardRef((props, ref) => {
359
359
  const handleEditorChange = newValue => {
360
360
  if (JSON.stringify(newValue) !== JSON.stringify(debouncedValue?.current)) {
361
361
  updateTopBanner(newValue, setTopBanner);
362
- if (onSave && !readOnly) {
363
- debounced(newValue);
364
- }
362
+ debounced(newValue);
365
363
  if (!isInteracted) {
366
364
  // setIsInteracted(true);
367
365
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flozy/editor",
3
- "version": "9.9.9",
3
+ "version": "10.0.1",
4
4
  "description": "An Editor for flozy app brain",
5
5
  "files": [
6
6
  "dist"