Saturday, 22 November 2008
 
  Home arrow Site Map arrow Joomla TinyMCE Resize Problem Fix
AskJack is Managed & Marketed by Sterling eConsultancy
 
Member Login
Join AskJack - registration is free and only takes a few minutes...
Lost Password? No account yet? Register

Main Menu
Home
News
Site Map
Links
Search
Panoramic Technology
Interesting RSS Feeds
Advertising
Amazing LPR Site Map
Article JackC
Recipe JackC
Search JackC
AJ Member Content
A Nude JackC
AskJackC Anything
FAQ Registration
FAQ Post Content to AJ
These are NOT Ad Links - Super Fast FREE Random Info
Who's Online

Advertisement

Joomla TinyMCE Resize Problem Fix

Written by Jack   

This is a small bug fix for the users of the Millennium Earth template which, is a free download over at joomla-templates.com

The newly released Camel Tickler Road Trips and Destinations web site use a customised version of this free template.

Problem: The template uses a fixed width of 770 in all page views. When a member logs in and tries to post a new item; the TinyMCE editor breaks the template layout, because it's too wide by about 100 pixels.

Here is the fix for the Joomla TinyMCE Resize Problem:

Using your text editor open:

components/com_content/content.html.php

Search for:

PHP Code:
// parameters : areaname, content, hidden field, width, height, rows, cols
editorArea( 'editor1', $row->introtext , 'introtext', '500', '200', '45', '5' ) ;

PHP Code:
// parameters : areaname, content, hidden field, width, height, rows, cols
editorArea( 'editor2', $row->fulltext , 'fulltext', '500', '200', '45', '5' ) ;

You need to change the width and cols settings in both code snips. This will affect the size of ALL editors you may have loaded in Joomla not just TinyMCE.

To reduce the edit window to 450 wide, you'll also have to uncheck some option buttons using the TinyMCE Mambot link in when loogged into your administrator manager.

Remember, if you're going to start "fiddling" with Joomla's backend code; you better make a back-up of each file. That way, if things go "camel-tits-up", you can always restore the defaults.

Would your business use and appriciate a Content Management System to administer your web site?

Use the contact link at the top of this page to make an enquiry.

AskJack is a Sterling eConsultancy Project.

 
< Prev   Next >