Some basic plugin code:
My question is, when I add the listener to return the 'myCommand', how can I also pass the element parameter as command data to that command?
editor.addMenuItem('myCommand',
{
label : 'DoSomething',
command : myCommand,
order : 9
});
editor.contextMenu.addListener(function(element, selection)
{
if ( element ) {
return { 'myCommand': CKEDITOR.TRISTATE_OFF}
}
});
My question is, when I add the listener to return the 'myCommand', how can I also pass the element parameter as command data to that command?
