Feedback Form
Home Open Source Tips and Tutorials JCE text align problem (solved)
Wednesday, 17 June 2009 18:45

After my VPS provider hacking misery I got a new VPS and I rebuild all my websites, but I met a new problem here, on laszlomolnar.name. Default text align in my Joomla WYSIWYG editor, JCE was center. Center, but I wanted left text align. I tried to set up JCE, but I did not find the correct setting. Text align was center by default.

After some google search I found the solution:

My Joomla template is a native 1.5 template. And it has a file called editor_content.css , JCE uses this file as style sheet.

So I had to change the 'Use Template CSS' value to 'No' and set the 'Custom CSS File' value to the path to this style sheet: templates/$template/css/editor_content.css in the JCE configuration.

If you have got this text align problem too, go to: Components ->JCE Administration -> JCE Configuration

And set it.

JCE setting

If your template has not an editor_content.css file, create one for yourself.

Example content of the editor_content.css file:

body{
margin:0;
padding:0;
text-align: left;
background: white;
background-image: none;
}

Last Updated ( Wednesday, 08 July 2009 07:37 )
 

Visitor Map

Recent Readers