I have created my custom styles such as :
{ name: 'KOP', element: 'text', attributes: { 'class': 'rr01_title_NWS_kop_sport_historisch'} }
{ name: 'SUBKOP', element: 'text', attributes: { 'class': 'rrxx_NWS_broodtekst'} }
Issue is when I have selected the text and applies new style new span is createded adn it nests previous span.
While applying new style I need to unselect already applied style and then apply new one.
What I want is "remove all the styles (spans) within the selected text before applying the new one"
How can I achieve this ?
Urgent Help is really appreciated.