manikandan170890 / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 1 forks source link

Default value for TinyMCE #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
$form->addElement(new PFBC\Element\TinyMCE("Edit your document", "txt"), array(
    "validation" => array(
    new PFBC\Validation\Required,
    ),
    "description" => "comment",
        "value" => "<b>test</b>"
)

I cannot set the default value for TinyMCE textbox. what is wrong with my code 
? 
how can I set default value for TnyMCE text box.  (any trick or  ...? ) 

Original issue reported on code.google.com by ahmad.b...@gmail.com on 5 Sep 2011 at 5:29

GoogleCodeExporter commented 9 years ago
Your addElement method needs to be rewritten to...

$form->addElement(new PFBC\Element\TinyMCE("Edit your document", "txt", array(
     "required" => 1,
     "description" => "comment",
     "value" => "test"
)));

Original comment by ajporterfield@gmail.com on 5 Sep 2011 at 6:53