Page 1 of 1

textarea

Posted: Mon Aug 08, 2005 11:08 am
by kishman155
I have a problem to find out how i could make a textarea with wysiwyg in the contenttipes.

Code: Select all

function EditAsArray($adding = false)
	{
.
.
.
.
array_push($ret,array($this->Lang('text').':','<textarea style="width:100%" name="text" "cols="80" rows="20" >'.$this->GetPropertyValue('text').'</textarea>'));

thanks for help

kris

Re: textarea

Posted: Tue Aug 09, 2005 6:21 pm
by sjg
You could probably use a variation on the following:

Code: Select all

array_push($ret,array($this->Lang('text').':',create_textarea(true, $this->GetPropertyValue('text'), 'text','','text','',$stylesheet, 80, 20));
'
where $stylesheet contains a path to the stylesheet in use (or make it '').

I have a fully working code snippet somewhere that fetches the active stylesheet for the template in use, but I'll have to hunt for that.

Good Luck!
___Samuel___

Re: textarea

Posted: Fri Aug 26, 2005 3:45 pm
by kishman155
Thanks samuel for this it helps me to not wast time.

thanks
kris