#34 ✓wontfix
madhums

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

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.

New-ticket Create new ticket

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.

People watching this ticket

Pages