Skip to content

Commit

Permalink
Rich Text: Filter both sets of child nodes in split
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed May 1, 2018
1 parent ad285e6 commit f9f2739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit f9f2739

Please sign in to comment.