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,335
  • 19
  • 75
  • 138

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,228
  • 4
  • 53
  • 72