1

I have the following event listener, I couldn't seem to find anything in the ev object that'd hold the pasted data.

editor.on('beforePaste', function(ev)
{
    console.log( ev );
});

Can I, and if yes, then how do I retrieve the posted data?

tomsseisums
  • 12,725
  • 19
  • 81
  • 144

1 Answers1

3

The beforePaste is fired before data are accessible. You can only find them in editor#paste:

editor.on( 'paste', function( evt ) {
    console.log( evt.data.dataValue );
} );
Reinmar
  • 21,842
  • 4
  • 60
  • 76