How do you configure routes for the template plugin?
-
Andrew Cox
I just looked at this again and figured out my (stupid) error. I was using a relative path for the 'src', so it was just tacking it on at the end. This works (assuming you have an editor_details.htm file in /public/javascripts/tiny_mce):
uses_tiny_mce :only => [:new, :create, :edit, :update], :options => { :theme => 'advanced', :mode => 'exact', :elements => 'spotlight_content', :theme_advanced_buttons1_add => "template", :plugins => %w{ template } }, :raw_options => "template_templates : [ { title : 'Editor Details', src : '/javascripts/tiny_mce/editor_details.htm', description : 'Adds Editors Name and Staff ID' } ]" -
Kieran P
Hey Andrew. Glad you were able to work it out. And thanks for using the plugin.
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.