Hi, I'm looking for a list of possible ckeditor events.
In detail, I need to hook on an event
a) when the toolbar gets collapsed,
and
b) after some text was pasted in.
("paste" event doesn't work in this case, since the pasted text seems not to be available when calling getdata())
Hope someone can help.
Thanks
--Danny
In detail, I need to hook on an event
a) when the toolbar gets collapsed,
and
b) after some text was pasted in.
("paste" event doesn't work in this case, since the pasted text seems not to be available when calling getdata())
Hope someone can help.
Thanks
--Danny
Re: CKEditor event list
lists the events in each name space and class in it's own section : Event Summary.
As far as hooking into the events you want goes, you should try to hook into the key press events too especially for paste because in most browsers you can only paste into CKEditor properly using the key combination ctrl + v.
The easiest way to find out when an event is fired, is to look at the editor and plugin code (The toolbar plugin in your case) to spot when the editor fires the event you select.
Thanks,
Zanpakutō
Re: CKEditor event list
The problem with the paste event that I have is that the newly pasted text is not available in the getdata()
function of CKeditor. What I need is pretty much an "after paste" event. Or even better an event that always raises if anything changes in the editor.
Is there something like that (similar to the checkdirty flag, but implemented as an event)?
Thanks.
--Danny
Re: CKEditor event list
_source/plugins/pastetext/plugin.js
The paste event will fire when something is pasted.
Thanks,
Zanpakutō
Re: CKEditor event list
I know the paste event, but it just get's me to text from the clipboard.
Not the one that is in the editor after pasting.
As I said, an event that is always raised on any change action in the editor would be also fine
as a solution. (checkdirty or similar).