﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
7229	Request for relaying cut and copy events to the editor instance	Arne		"Request for normalizing '''cut''', '''copy''' and '''paste''' events in the editor across browsers.
In version 3.5.2 only the ''''paste'''' event is relayed to the editor object.
Would be very convenient if ''''cut'''' and ''''copy'''' could also be relayed.

The specific use case is having to add attributes to the elements in a selection
prior to cutting/copying. These are then parsed when pasted back into the editor.

Some quick research gave me the following summary:

I ran the following code in each of the browsers' developer tools

{{{
var body = CKEDITOR.instances.editor1.document.getBody();
var logger = function (name) {
    return function () {console.log(name);};
};
body.on('beforepaste', logger('beforepaste'));
body.on('paste', logger('paste'));
body.on('beforecut', logger('beforecut'));
body.on('cut', logger('cut'));
body.on('beforecopy', logger('beforecopy'));
body.on('copy', logger('copy'));
}}}

and registered the events fired:

=== Opera Version: 11.00, Build: 1156, WinXP ===
{{{
Cut: none
Copy: none
Paste: 
  beforepaste 
  paste
}}}
=== Google Chrome 9.0.597.98, WinXP ===
{{{
Cut:
  beforecut
  cut
Copy:
  beforecopy
  copy
Paste:
  beforepaste
  paste
}}}
=== Firefox 3.6.13, WinXP ===
{{{
Cut:
  cut
Copy:
  copy
Paste:
  beforepaste
  paste
}}}
=== IE8, Windows Server 2003 ===
{{{
Cut:
  beforecut
  cut
Copy:
  beforecopy
  copy
Paste:
  beforepaste
  paste
}}}
IE also fires extra unlisted ones due to calling ""queryCommandEnabled('paste')"" in clipboard plugin."	New Feature	new	Normal		General				
