A discussion about just this and other problems with sfWidgetFormTextareaTinyMCE took place a few days ago here, next time first search the mailing list please:
http://groups.google.com/group/symfony-users/browse_thread/thread/b4950dd116b8aa3e?hl=en On Mar 4, 3:41 pm, Lawrence Krubner <lkrub...@geocities.com> wrote: > On Mar 4, 4:51 am, Garakkio <garak...@gmail.com> wrote: > > > My humble opinion: it's better to use directly javascript to get > > tinyMCE working. > > So, simple add a "class="rich"" to yout textarea and write (and > > include it in your page, of course) a js like this one: > > > tinyMCE.init({ > > theme : "advanced", > > mode: "textareas", > > editor_selector : "rich", > > // any options you like, > > seehttp://wiki.moxiecode.com/index.php/TinyMCE:Configuration > > > }); > > Here is an odd thing. The controls are appearing at the bottom of the > textarea. You can see a screenshot here: > > http://lawrence.sds5.com/text_editor_at_bottom.gif > > This is the script that I've defined in layout.php: > > <script type="text/javascript"> > tinyMCE.init({ > theme : "advanced", > mode: "textareas", > editor_selector : "rich_text_editor" > }); > </script> > > Following your advice, this is how I defined the widget in my form > class: > > $this->widgetSchema['description'] = new sfWidgetFormTextarea(array > (), array('class' => 'rich_text_editor')); > > Any insight why the control is at the bottom of the textarea? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---