diff --git a/blocks/editable/index.js b/blocks/editable/index.js index 22679714e659f..6c2772da9d6e1 100644 --- a/blocks/editable/index.js +++ b/blocks/editable/index.js @@ -86,7 +86,7 @@ export default class Editable extends Component { this.changeFormats = this.changeFormats.bind( this ); this.onSelectionChange = this.onSelectionChange.bind( this ); this.maybePropagateUndo = this.maybePropagateUndo.bind( this ); - this.onBeforePastePreProcess = this.onBeforePastePreProcess.bind( this ); + this.onPastePreProcess = this.onPastePreProcess.bind( this ); this.state = { formats: {}, @@ -118,7 +118,7 @@ export default class Editable extends Component { editor.on( 'keyup', this.onKeyUp ); editor.on( 'selectionChange', this.onSelectionChange ); editor.on( 'BeforeExecCommand', this.maybePropagateUndo ); - editor.on( 'BeforePastePreProcess', this.onBeforePastePreProcess ); + editor.on( 'PastePreProcess', this.onPastePreProcess, true /* Add before core handlers */ ); patterns.apply( this, [ editor ] ); @@ -196,7 +196,7 @@ export default class Editable extends Component { } } - onBeforePastePreProcess( event ) { + onPastePreProcess( event ) { // Allows us to ask for this information when we get a report. window.console.log( 'Received HTML:\n\n', event.content );