On Mar 4, 4:51 am, Garakkio <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---