[SOLVED] text alignment in tinyMCE

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
LouiseW
Forum Members
Forum Members
Posts: 83
Joined: Tue Jun 10, 2008 6:59 pm

[SOLVED] text alignment in tinyMCE

Post by LouiseW »

In the backend using tinyMCE and template default or NClearBlue all text is centered by default.

This is in the css of NClearBlue

Code: Select all

p {
	padding: 0;
	margin-top: 0.5em;
    margin-bottom: 1em;
   text-align:left;
}
So why isn't the text aligned left?

In the frontend all is correctly aligned left.
Last edited by LouiseW on Wed Jul 29, 2009 2:29 pm, edited 1 time in total.
Thanks for your help
I use CMS Made Simple 1.6 "New Caledonia"
nuno

Re: text alignment in tinyMCE

Post by nuno »

Because Tiny grabs the BODY css, i think is fixed in 1.6.1 and current version.

Nuno Costa
LouiseW
Forum Members
Forum Members
Posts: 83
Joined: Tue Jun 10, 2008 6:59 pm

Re: text alignment in tinyMCE

Post by LouiseW »

Hello Nuno Costa

Thanks for your answer.
I did an upgrade tot 1.6.1 but the problem persists.
Thanks for your help
I use CMS Made Simple 1.6 "New Caledonia"
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: text alignment in tinyMCE

Post by Dr.CSS »

Was this a clean install of 1.6?...
LouiseW
Forum Members
Forum Members
Posts: 83
Joined: Tue Jun 10, 2008 6:59 pm

Re: text alignment in tinyMCE

Post by LouiseW »

I had 2 clean installs of 1.6: local on a WAMP server and on line.

On the WAMP server I did an upgrade to 1.6.1.

The problem exists on both versions.
Thanks for your help
I use CMS Made Simple 1.6 "New Caledonia"
LouiseW
Forum Members
Forum Members
Posts: 83
Joined: Tue Jun 10, 2008 6:59 pm

Re: text alignment in tinyMCE

Post by LouiseW »

I found a nice and simple work around:
Go to Extentions - TinyMCE - Advanced
and add this code to Additions to stylesheet:

Code: Select all

p{
text-align: left;
}
or

Code: Select all

body{
text-align: left;
}
You can immediately see that it works at the example below this stylesheet window.
Thanks for your help
I use CMS Made Simple 1.6 "New Caledonia"
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: [SOLVED] text alignment in tinyMCE

Post by Dr.CSS »

Doing an upgrade will not effect any of the style sheets, it has to be a clean install to get new style sheets etc...
Post Reply

Return to “Layout and Design (CSS & HTML)”