Log in or register to post comments
Last post
Retrieving the native event from an eventInfo
Hi there,

I want to write a quick fix for this issue where Firefox pastes formatted text even though the editor is set to force paste as plain text. The idea is to use the plain/text clipboardData from the native JS onPaste event to force pasting plain text instead of formatted code.

However I can't seem to find out how to access the native event-object from a CKEditor event. Listening to 'paste' with a callback-function gives me an eventInfo-object as parameter. How can I access the native event from there? Is that even possible?

Thank you,
Lukas
Re: Retrieving the native event from an eventInfo
Dear Google-users,

as much as I have found out, CKEditor has its own proprietary event-system and the events passed as event-info have nothing to do with native browser events. Also, the native event is not passed along with the event-info-object and is not accessible, you'd have to listen to the native events and not use on('xyz', ...)
Re: Retrieving the native event from an eventInfo
Edit: It seems in some events, the original browser-native event is passed in yourEvent.data.$ , but not in all