From abb531f86fa9b7ec6f3bfe34a7d88e3c372e4452 Mon Sep 17 00:00:00 2001 From: James Johnson Date: Tue, 16 May 2017 12:13:46 +1000 Subject: [PATCH] Removed onSetup and onNodeChange callbacks --- blocks/editable/index.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/blocks/editable/index.js b/blocks/editable/index.js index 27820c68c9f58f..b1911725f07616 100644 --- a/blocks/editable/index.js +++ b/blocks/editable/index.js @@ -117,10 +117,6 @@ export default class Editable extends wp.element.Component { editor.on( 'nodechange', this.onNodeChange ); editor.on( 'keydown', this.onKeyDown ); editor.on( 'selectionChange', this.onSelectionChange ); - - if ( this.props.onSetup ) { - this.props.onSetup( editor ); - } } onInit() { @@ -279,10 +275,6 @@ export default class Editable extends wp.element.Component { const focusPosition = this.getRelativePosition( element ); const bookmark = this.editor.selection.getBookmark( 2, true ); this.setState( { alignment, bookmark, formats, focusPosition, list } ); - - if ( this.props.onNodeChange ) { - this.props.onNodeChange( { element, parents } ); - } } updateContent() {