Change textarea size in Joomla 2.5

 

Joomla 2.5's small text-area

The textarea size in the Article Manager's TinyMCE editor of Joomla 2.5 is annoyingly small, especially for people used to the larger editable area that was available in Joomla 1.5.

 

You can change the height of this by clicking on the diagonal lined area at the bottom right hand corner and dragging up and down, but the size will reset after each session has ended. Here's how you can hardcode a height size of your choice...

 

 

Edit the file found in... plugins/editors/tinymce/tinymce.php

Then change line 723 (or thereabouts) from...


$editor  = '<textarea name="' . $name . '" id="' . $id .'" cols="'. $col .'" rows="' . $row . '" style="width: ' . $width . '; height:' . $height . ';" class="mce_editable">' . $content . "</textarea>\n" .

to...

 

$editor  = '<textarea name="' . $name . '" id="' . $id .'" cols="'.

$col .'" rows="' . $row . '" style="width: ' . $width . '; height:500px;"

class="mce_editable">' . $content . "</textarea>\n" .

 

Replacing the height value with the height of your choice.

Web Design & Development
07845 950063
This email address is being protected from spambots. You need JavaScript enabled to view it.