Opened 13 years ago
Last modified 13 years ago
#8418 confirmed Bug
do feature detection of paste event support before simulating a paste event
Reported by: | Hallvord R. M. Steen (Opera Software) | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | Cc: | Frederico Caldeira Knabben |
Description
I think this code might end up confusing you when Opera one day supports 'paste' events:
http://dev.ckeditor.com/browser/CKEditor/trunk/_source/plugins/clipboard/plugin.js#L141
I suggest adding some additional feature detection - perhaps
if ( CKEDITOR.env.opera && ! ('ClipboardEvent' in window) )
or something like that.. There is no rush, paste event is high priority but probably won't happen for Opera 12 unfortunately.
Leaving this as a bug as in future when Opera introduces this event this issue might become a bug.