tinyMCE NOT Centered! Options
Sjoerd22
Posted: Tuesday, July 22, 2008 5:46:48 PM

Rank: Newbie

Joined: 7/21/2008
Posts: 12
Location: Netherlands
My RichEdit control always shows the text centered... while it's not when rendered... very irritating.. should be easy to fix: put a text-align: left in one of the css files... but which one ?
I've tried them all by now.
Anyone a better idea ?
mortenbock
Posted: Wednesday, July 23, 2008 10:34:39 AM

Rank: Addict

Joined: 7/19/2006
Posts: 789
Location: Århus, Denmark
Do you have a

body{text-align: center;}

in your CSS? That would probably cause the problem you mention.

One solution could be to have a separate stylesheet for the editor, where you create the substyles for the dropdown.

You could also try to create a new stylesheet containing:

body{text-align: left;}

and include that in the editor as well. And hope that it overrides the first stylesheet.

Morten Bock - Level 2 certified - MVP 2008/2009 - My danish blog with a few english posts

drobar
Posted: Wednesday, July 23, 2008 2:11:08 PM

Rank: Umbracoholic

Joined: 9/8/2006
Posts: 1,696
Location: KY, USA
I usually include the following in my CSS to control the background color of the TinyMCE editor... in case I've set some dark background or image elsewhere in the design that causes trouble. You could certainly expand on this to meet your needs.

Code:
.mceContentBody,
.mceEditorIframe {
    /* TinyMCE Editor */
    background-color:#FFFFFF;
    }
.mceContentbody a,
.mceEditorIframe a {
    color: #00F;
    text-decoration: underline;
    }


Just be sure to tell TinyMCE to use the stylesheet that contains this information. This is done by going to the Developer section of umbraco, expanding the Data Type treeview item, and selecting the Richtext Editor datatype. You'll see various options, including a list of your css stylesheets. Select the one(s) you need.

cheers,
doug.

MVP 2007-2009 - Official Umbraco Trainer for North America - Percipient Studios
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.