setup option in tinymce init
Reported by madhums | June 5th, 2011 @ 10:40 PM
How can I have a setup option in tinymce init?
I have the following in my controller
uses_tiny_mce :only => [:new, :edit, :create,
:update],
:options => {
:theme => 'advanced',
:theme_advanced_buttons1 => "bold, italic, separator, undo,redo, separator, bullist,numlist, separator, cleanup, separator, link, unlink, image",
:theme_advanced_toolbar_location => "top",
:theme_advanced_buttons2 => "",
:theme_advanced_buttons3 => "",
:theme_advanced_toolbar_align => "left",
:valid_elements => "a[href|target=_blank],strong/b,ul,li,ol,em/i,strike,u,br,p,img[src|width|height|alt]",
:entity_encoding => "raw",
:plugins => %w{ autoresize }
}
But I cannot include a setup option having event callba cks here in the controller.
Is there any way i can add onchange and onclick events without setup option?
Please help
Thanks!
Comments and changes to this ticket
-
Walter McGinnis August 19th, 2011 @ 03:12 PM
- State changed from new to wontfix
Sorry, this doesn't look like a bug. I'm not sure what you would like to do. You can look around the Kete application (https://github.com/kete/kete) for example code. It updates options at page load in the application layout header.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A Ruby on Rails plugin that allows easy implementation of the TinyMCE editor into your applications.