diff --git a/blocks/editable/index.js b/blocks/editable/index.js index 1ca6c6adbc8e9d..d5935b9e465d4d 100644 --- a/blocks/editable/index.js +++ b/blocks/editable/index.js @@ -205,7 +205,13 @@ export default class Editable extends Component { return; } - this.splitContent( content ); + const rootNode = this.editor.getBody(); + + if ( this.editor.dom.isEmpty( rootNode ) && this.props.onReplace ) { + this.props.onReplace( content ); + } else { + this.splitContent( content ); + } } }