A question about the CKEditor 4 styles combo...
When the user selects a new style, I would like to first perform a "remove format" on the selection, before the new style is applied.
How can this be done? Is an event I can attach to, which is fired before a new style is applied? If not, what's the best way of detecting when a style is selected, running a bit of code on the selection, then passing back to the style code?
In other words:
- User selects some text, opens the style combo and clicks a style.
- My code steps in and first performs a "remove format" on the selection.
- Return to CkEditor code to complete applying the new style.
Many thanks!