diff --git a/blocks/rich-text/index.js b/blocks/rich-text/index.js index 308580034a4125..3d563c653aa08d 100644 --- a/blocks/rich-text/index.js +++ b/blocks/rich-text/index.js @@ -561,7 +561,7 @@ export class RichText extends Component { const afterFragment = afterRange.extractContents(); const { format } = this.props; - const before = domToFormat( beforeFragment.childNodes, format, this.editor ); + const before = domToFormat( filterEmptyNodes( beforeFragment.childNodes ), format, this.editor ); const after = domToFormat( filterEmptyNodes( afterFragment.childNodes ), format, this.editor ); this.restoreContentAndSplit( before, after, blocks );