开发者

richTextEditor problem in symfony

开发者 https://www.devze.com 2023-04-07 03:55 出处:网络
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 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号