diff --git a/src/components/Editor/index.jsx b/src/components/Editor/index.jsx index 282419a9..31c11307 100644 --- a/src/components/Editor/index.jsx +++ b/src/components/Editor/index.jsx @@ -110,9 +110,10 @@ const Editor = ( const handleBlur = props => { const { editor } = props; - const trimmedContent = removeEmptyTags(editor.getHTML()); + const content = editor.getHTML(); + const trimmedContent = removeEmptyTags(content); - onChange(trimmedContent); + if (content !== trimmedContent) onChange(trimmedContent); onBlur(props); };