Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

setup option in tinymce init

#34

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!

Reported by madhums · June 5th, 2011 @ 10:40 PM

State: wontfix
Milestone: none
Assigned to: nobody

Activity

  1. Walter McGinnis
    Walter McGinnis
    • 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.

    August 19th, 2011 @ 03:12 PM

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.