richTextEditor problem in symfony
I have installed sfExtraPluginForm in my symfony and i want to get a rich text editor in my forms but it just shows a sim开发者_高级运维ple textarea.
I have installed sfExtraPluginForm and created a form in form folder.
The code i have written is:
$this->setWidgets(array( 'title' => new sfWidgetFormInput(), 'description' => new sfWidgetFormTextareaTinyMCE(array( 'width' => 550, 'height' => 350, 'theme' => 'advanced', ))
What more do I need to do?
You probably forgot to load tinyMCE library. Download it from the offcial website and include tiny_mce.js in your page.
精彩评论