@bigbinary/neeto-editor 1.45.20 → 1.45.21

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/dist/Editor.js CHANGED
@@ -19696,8 +19696,9 @@ var Editor = function Editor(_ref, ref) {
19696
19696
  }, 100);
19697
19697
  var handleBlur = function handleBlur(props) {
19698
19698
  var editor = props.editor;
19699
- var trimmedContent = removeEmptyTags(editor.getHTML());
19700
- onChange(trimmedContent);
19699
+ var content = editor.getHTML();
19700
+ var trimmedContent = removeEmptyTags(content);
19701
+ if (content !== trimmedContent) onChange(trimmedContent);
19701
19702
  onBlur(props);
19702
19703
  };
19703
19704
  var customExtensions = useCustomExtensions({