We have set up a custom stylesheet in our editor to be able to select classes for our text. This works fine if we format part of a pragraph. It will add the class to a SPAN tag, and this could be removed by loosely selecting the text and pushing the "remove format" button. This however does not work if we select an entire paragraph and format. It will then add the class to the P tag, and to get rid of it you have to select EXACTLY the formated text to change the formatting. The "remove format" button does not remove P classes. Is there a workaround for this? Our custmers never understands that they need to mark exactly the formatted text.
Yes, there is! I was searching for this earlier and managed to figure it out. Add a style with no alias, and call it something like "Remove Styling". Selecting this while selecting a paragraph with a style will remove all classes from the element and make it a plain old p again.
Also, if you select "Styles" (the first option in the dropdown) it will remove the class/styling from the selected paragraph, so you wouldn't have to add a style without alias (although a "Remove styling" might be easier for the editors to understand).
Remove formatting in editor
Hello!
We have set up a custom stylesheet in our editor to be able to select classes for our text. This works fine if we format part of a pragraph. It will add the class to a SPAN tag, and this could be removed by loosely selecting the text and pushing the "remove format" button. This however does not work if we select an entire paragraph and format. It will then add the class to the P tag, and to get rid of it you have to select EXACTLY the formated text to change the formatting. The "remove format" button does not remove P classes. Is there a workaround for this? Our custmers never understands that they need to mark exactly the formatted text.
Thanks,
Christopher
Yes, there is! I was searching for this earlier and managed to figure it out. Add a style with no alias, and call it something like "Remove Styling". Selecting this while selecting a paragraph with a style will remove all classes from the element and make it a plain old p again.
Hope that helps!
Also, if you select "Styles" (the first option in the dropdown) it will remove the class/styling from the selected paragraph, so you wouldn't have to add a style without alias (although a "Remove styling" might be easier for the editors to understand).
Regards,
Magnus
is working on a reply...