Nibble

Richtext editor datatype and related stylesheets

You can relate stylesheets to the richttext editor datatype in umbraco, sometimes this will cause an unwanted effect. Like a background color that you don’t want, …

But this can easily be changed.

You can target the richttext editor with the class

.mceContentBody

So by appending this to the related stylesheet, you have more control over the styling in the richttext editor datatype.

(make sure to clear your browser cache, to view the result)

2 Comments so far

  1. eran on March 17th, 2010

    hello, I’ve build a site for RTL content, so the customer also need
    to enter RTL content. so, i used the mceContentBody class to apply RTL to the richtext editor. now the text direction is RTL.
    the problem: now, if you enter mixed RTL and English (for example one english word in the middle of Hebrew line) - the marks messed up (,;?, etc) - i mean that the editor don’t know that you switched from RTL to LTR.
    is there any solution? i know that in wordpress for example, it doesn’t happen and the richtext editor handle that correctly.
    thanks!

  2. datingboerse on June 16th, 2010

    Good Day
    Awesome info! My bro was honestly just thinking about something similar to this teh other day so, it was almost weird when My bro ran across this. You would be surprised how many people simply have no idea when it comes to this kind of stuff. Anyway, thanks for getting this really tight info out there and My bro am sure My bro am not teh only one who appreciates you taking teh time to post this for teh masses.

Leave a Reply