textarea

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
kishman155
Translator
Translator
Posts: 169
Joined: Sat Mar 12, 2005 12:30 pm
Location: Vienna

textarea

Post 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
User avatar
sjg
Power Poster
Power Poster
Posts: 310
Joined: Thu Jan 27, 2005 5:11 pm
Location: Los Angeles, CA

Re: textarea

Post 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___
Many modules available from the http://dev.cmsmadesimple.org
The CMS Made Simple Developer Cookbook is now available from Packt Publishers!
kishman155
Translator
Translator
Posts: 169
Joined: Sat Mar 12, 2005 12:30 pm
Location: Vienna

Re: textarea

Post by kishman155 »

Thanks samuel for this it helps me to not wast time.

thanks
kris
Post Reply

Return to “Developers Discussion”