Code: Select all
void CreateTextArea (bool $enablewysiwyg, string $id, string $text,
string $name, [string $classname = ''], [string $htmlid = ''], [string $encoding = ''],
[string $stylesheet = ''], [string $width = '80'], [string $cols = '15'], [string $forcewysiwyg = ""])
Although you can specify a $classname, there seem to be no way to declare the class in admin css, short of creating a whole theme...
Eventually I found from the source that the function supports an undocumented $addtext parameter:
Code: Select all
function CreateTextArea($enablewysiwyg, $id, $text,
$name, $classname='', $htmlid='', $encoding='', $stylesheet='', $cols='80',
$rows='15',$forcewysiwyg='',$wantedsyntax='',$addtext='')
Code: Select all
$this->CreateTextArea(false, $id, $address, 'address','','','','','','','','',
'style="width: 18em; height: 6em;"')
Is there a better way of solving the problem?
Brian