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?
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?
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 );
} );