@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 +3 -2
- package/dist/Editor.js.map +1 -1
- package/dist/cjs/Editor.cjs.js +3 -2
- package/dist/cjs/Editor.cjs.js.map +1 -1
- package/dist/editor-stats.html +1 -1
- package/package.json +1 -1
package/dist/cjs/Editor.cjs.js
CHANGED
|
@@ -19716,8 +19716,9 @@ var Editor = function Editor(_ref, ref) {
|
|
|
19716
19716
|
}, 100);
|
|
19717
19717
|
var handleBlur = function handleBlur(props) {
|
|
19718
19718
|
var editor = props.editor;
|
|
19719
|
-
var
|
|
19720
|
-
|
|
19719
|
+
var content = editor.getHTML();
|
|
19720
|
+
var trimmedContent = common.removeEmptyTags(content);
|
|
19721
|
+
if (content !== trimmedContent) onChange(trimmedContent);
|
|
19721
19722
|
onBlur(props);
|
|
19722
19723
|
};
|
|
19723
19724
|
var customExtensions = useCustomExtensions({
|