3
votes

I took a look at the CKEditor API and found this useful event:

http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-afterCommandExec

It's not working for anything that requires a dropdown ( classname, font, fontsize ) but it works for any buttons like bold, link, undo.

Does anyone have any ideas why this doesn't work or if there is some other event for these kind of toolbar plugins?

1
I looked into the instance via Firebug and see font isn't part of its "commands" property so I guess that's why it doesn't work but now I'm hunting for a way to know when richcombos change value - Dave Stein

1 Answers

4
votes

That's because these dropdowns (font size/family, format, etc) don't use commands.

I think that you can use selectionChange event. It's fired every time selection's elementPath is modified (including focus/blur). So all buttons, every dropdown fire this even when clicked.