Skip to content

Commit

Permalink
Rich Text: Remove isEmpty condition from getContent (#7649)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth authored Jul 3, 2018
1 parent 0b4eaa8 commit 73b1f33
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions editor/components/rich-text/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -802,9 +802,7 @@ export class RichText extends Component {
case 'string':
return this.editor.getContent();
default:
return this.editor.dom.isEmpty( this.editor.getBody() ) ?
[] :
domToFormat( this.editor.getBody().childNodes || [], 'element', this.editor );
return domToFormat( this.editor.getBody().childNodes || [], 'element', this.editor );
}
}

Expand Down

0 comments on commit 73b1f33

Please sign in to comment.