additional text to 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
kazkas

additional text to TextArea

Post 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 :/
cyberman

Re: additional text to TextArea

Post by cyberman »

kazkas

Re: additional text to TextArea

Post 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 :/
cyberman

Re: additional text to TextArea

Post 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 ...
cyberman

Re: additional text to TextArea

Post by cyberman »

OK, $addtext will be available for CreateTextArea in coming version 1.4.
Post Reply

Return to “Developers Discussion”