Page 1 of 1

editcontent.php: Resizing Content box?

Posted: Fri Feb 25, 2005 1:25 am
by Glenn
I'm sorry to add a new topic, this is already started somewhere but I couldn't find it. The Content box isn't tall enough to be really effective when editing an article with photos and tables, etc.

Someone asked about resizing the text areas in the content editor and the reply was to use syntaxHighlight in admin/style.css. I did that but it only resizes the Head Tags box. Looking at the source code (from Firefox) of editcontent.php I see that the Content box has no style assigned:

Code: Select all

<textarea id="content_en" name="content_en" cols="80" rows="20">
...while the Head Tags filed does:

Code: Select all

<textarea name="headtags" cols="80" rows="12" class="syntaxHighlight" id="headtags">
Yet in Content.inc.php I see this code:

Code: Select all

$text .= '<tr><td>'.lang('content').':</td><td>'.create_textarea(true, $this->mProperties->GetValue('content_en'), 'content_en', 'syntaxHighlight', 'content_en', '', $stylesheet).'</td></tr>'."\n";

$text .= '<tr><td>'.lang('headtags').':</td><td>'.create_textarea(false, $this->mProperties->GetValue('headtags'), 'headtags', 'syntaxHighlight', 'headtags').'</td></tr>'."\n";
It looks like the content box SHOULD follow the stylesheet, but it doesn't. It would be easy enough to just manually change

Code: Select all

rows="20"
to

Code: Select all

rows="60"
or something, but I don't know where.