Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Christopher W. Brandsdal 72 posts 133 karma points
    Nov 26, 2009 @ 10:41
    Christopher W. Brandsdal
    0

    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

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jul 06, 2010 @ 16:56
    Tim
    0

    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!

  • Magnus Eriksson 122 posts 362 karma points
    Jul 06, 2010 @ 17:42
    Magnus Eriksson
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft