I seem to have a problem with how the Styles in the editor are applied.
A example:
I highlight a word and define my custom style to it: Headline which is a css-class.
Then I change my mind and want to change the word to another custom style: Content which is also a css-class.
Here I could assume the new class would replace the old one, ie instead of the word using Headline-class it would use Content-class. But when I look at the resulting code, the editor has added both classes to the word; ie adding, not replacing, the css. This is not what I want.
How can I make it so that the word only gets the latest applied css and not anything else?
I seem to have a problem with how the Styles in the editor are applied.
A example:
I highlight a word and define my custom style to it: Headline which is a css-class.
Then I change my mind and want to change the word to another custom style: Content which is also a css-class.
Here I could assume the new class would replace the old one, ie instead of the word using Headline-class it would use Content-class. But when I look at the resulting code, the editor has added both classes to the word; ie adding, not replacing, the css. This is not what I want.
How can I make it so that the word only gets the latest applied css and not anything else?