Hi,
I'm writting a plugin for CKEDITOR, and I'm trying to enable/disable toolbar items.
I set the button state using the setState() method, wrapped in the editor.on('selectionChange') event.
The thing is :
Note that this event is fired only when selection's start element (container of a selecion start) changes, not on every possible selection change
With this behaviour, if I click in an element (<p>), the selectionChange is triggered. Then if I select part of the text in this element, the selectionChange event is not triggered, so I cannot enable my button.
I took a look at the clipboard plugin, but I cannot manage to make it work the same way as the copy/cut buttons.
Thanks a lot
Well, I finally managed to
Well, I finally managed to make it work. I had to add :
Now, it's all ok.