Saturday, December 6, 2008

Multiple Instances of TinyMCE

So I've been playing around with the TinyMCE Helper located in the
bakery and so far it's been pretty awesome. However I do have one
problem. In one of my areas there are two text boxes that need
editing, and so I would like TinyMCE to control both text boxes. This
is my code for that part of the form:

echo $form->label('description', 'Description:');
echo $tinymce->input('description', array('label' => false,
'rows' => 20, 'cols' => 50));

echo $form->label('tech_description', 'Technical
Description:');
echo $tinymce->input('tech_description', array('label' =>
false, 'rows' => 20, 'cols' => 50));

However, only the first text box gets TinyMCE, the other one gets
reduced to a normal textarea box. So I am just wondering if anyone
knows how to make it produce two TinyMCE boxes so I can have multiple
instances of it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: