TinyMCE - initial cursor position

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Steady
New Member
New Member
Posts: 6
Joined: Mon Apr 21, 2008 9:54 pm

TinyMCE - initial cursor position

Post by Steady »

Using a fresh install of CMCMS (ver 1.9.4.1). When I create a new page and click in the content window to type the cursor appears to be aligned in the middle of the page (horizontally) and a scroll bar is present at the bottom of the window already indicating that the window is wider than the 'viewport'. On entering text I discover that the content is being automatically centre aligned. I can select it and align it left from the toolbar but this is good for the end user. How can I set it to align left to start with?
Regards, Edward
uniqu3

Re: TinyMCE - initial cursor position

Post by uniqu3 »

TinyMCE loads your template stylesheet by default, if you have text aligned to center on your frontend this is how TinyMCE will display it.

You can change these settings under "Extensions -> TinyMCE" and click on tab "Advanced".
In the "Additions to stylesheet:" textarea you can add your style as needed for example:
body {text-align: left;}
Steady
New Member
New Member
Posts: 6
Joined: Mon Apr 21, 2008 9:54 pm

Re: TinyMCE - initial cursor position

Post by Steady »

Fantastic. uniqu3, thanks so much. I had tried adding this to the Body Tag CSS but to no avail. Thanks again.
Regards, Edward
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: TinyMCE - initial cursor position

Post by Dr.CSS »

This happens on first install because the default template is set to NCleanBlue which has body text align center if you change the default template to any of the others you won't see this...
Post Reply

Return to “Modules/Add-Ons”