Copied to clipboard

Flag this post as spam?

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


  • Kate 267 posts 610 karma points
    Oct 06, 2010 @ 20:02
    Kate
    0

    Styles in Richtext editor problems

    Hi

    I have made 3 extra styles for my Richtext Editor. It looks like this

    When I markup a some text and click "text lille" it writes this in my html

    <p class="txtlille">

    But if I try to change the same text to "text normal" it writes this in my html

    <p class="txtlille textnormal">

    I had hoped that the "txtlille" in the class would have been deleted when I choose "text normal".

    Is there something I am doing wrong

  • Kate 267 posts 610 karma points
    Oct 06, 2010 @ 20:26
    Kate
    0

    My stylesheet for "txtlille" looks lige this

     

    I can see that it works fine if I write h1 og h2 in Alias. But I want to be abel to define my own classes.

    Has anybody had the same problem?

    If yes, what did you do?

     

  • Amir Khan 1287 posts 2744 karma points
    Oct 06, 2010 @ 22:40
    Amir Khan
    0

    I think that's the desired behavior so you could apply multiple classes if wanted, "blueText floatLeft" for example...

    I agree it would be nice for a "clear styles" button in the RTE, if you've applied the styles in succession you could always use the undo button (curved arrow pointing backwards).

  • Paul Blair 466 posts 731 karma points
    Oct 06, 2010 @ 23:05
    Paul Blair
    0

    One tip: if you click on the word "styles" in the drop down it will clear any styles that have been applied to the section.

    Also, if you go to Developer -> Data types ->Rich text editor; select the second button that looks like a paint brush. Then in you content page there is an image that looks like a chalk duster next to the html icon. This will remove formatting (bolds etc.). It might also remove class's that have been applied

  • Kate 267 posts 610 karma points
    Oct 07, 2010 @ 08:35
    Kate
    0

    Thanks.

    The chalk duster was just what I needed :-)

Please Sign in or register to post replies

Write your reply to:

Draft