On the TinyMCE tool-bar you can select a style to apply to the selected text (from a list of CSS classes that you create). However if I want to change to a different style, when I select a new style form the drop-down list, it just adds another class so the text ends up with having multiple competing classes attached.

Is this the normal behaviour - does any one else get this?

Does ayone know if there is a way to clear all styles on the selected text?

  • Yes, I have the same behaviour... So it is the way the system is supposed to work. But the guys on the forums seem to have found a solution: tinymce.com/forum/viewtopic.php?id=21691 Nov 20 '12 at 21:11
  • There is a button "remove format" in tinymce, you can enabled this and use. I hope, it will help you. Apr 15 '13 at 2:59

Edit I'd thought that the optional Remove Format button (below) would do remove styles.

enter image description here

Actually, turns out it doesn't - not in the version I'm using, anyway.

So it seems re-clicking on the styles that is already selected in the dropdown is the only way to deselect them, short of writing a custom plugin.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.