Page 1 of 1

additional text to TextArea

Posted: Mon Jul 07, 2008 10:32 am
by kazkas
Any ideas how to add additional text to textarea tag when tag is created via CreateTextArea function? I can not find any parameter that should do that, like in other inputs :/

Re: additional text to TextArea

Posted: Mon Jul 07, 2008 12:21 pm
by cyberman

Re: additional text to TextArea

Posted: Mon Jul 07, 2008 12:32 pm
by kazkas
cyberman wrote: Have you read this?

http://www.cmsmadesimple.org/apidoc/CMS ... teTextArea
Yeh, but which parameter allows me to add OnClick="" stuff into TextArea?  I know how to add that into text inputs or sumbit buttons, but tried all parameters for TextArea - non worked :/

Re: additional text to TextArea

Posted: Mon Jul 07, 2008 12:59 pm
by cyberman
Hmm, I see - there's currently no parameter like $addttext to do that.

Think it's time for a feature request in forge ... or you hack class.module.inc.php, line 1832 in CMSms 1.2.5

Code: Select all

	function CreateTextArea($enablewysiwyg, $id, $text, $name, $classname='', $htmlid='', $encoding='', $stylesheet='', $cols='80', $rows='15', $addttext='', $forcewysiwyg="", $wantedsyntax="")
	{
		return create_textarea($enablewysiwyg, $text, $id.$name, $classname, $htmlid, $encoding, $stylesheet, $cols, $rows, $addttext, $forcewysiwyg, $wantedsyntax);
	}
Not sure if it will work ...

Re: additional text to TextArea

Posted: Thu Jul 10, 2008 9:41 am
by cyberman
OK, $addtext will be available for CreateTextArea in coming version 1.4.