Skip to content

Commit

Permalink
Removed onSetup and onNodeChange callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
tiny-james committed May 16, 2017
1 parent f60e11d commit abb531f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions blocks/editable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit abb531f

Please sign in to comment.