Customize ckeditor toolbar (500) #102

Closed
domarques opened this Issue Feb 22, 2014 · 0 comments

Comments

Projects
None yet
1 participant
@domarques

I tried to customize the ckeditor toolbar (removing some useless buttons, at least for me, like font style, size, colors etc.) and got the following error while submit the changes:

URL: https://fqdn/settings/plugin/redmine_ckeditor

Started GET "/settings/plugin/redmine_ckeditor" for xxx.xxx.xxx.xxx at 2014-02-22 07:52:59 -0300
Processing by SettingsController#plugin as HTML
  Parameters: {"id"=>"redmine_ckeditor"}
  Current user: xxxxxxxx (id=x)
  Rendered plugins/redmine_ckeditor/app/views/settings/_ckeditor.html.erb (7.2ms)
  Rendered settings/plugin.html.erb within layouts/admin (8.8ms)
Completed 500 Internal Server Error in 14.0ms

ActionView::Template::Error (undefined method `delete' for nil:NilClass):
    113:   }
    114:
    115:   function updateCkeditor(toolbar) {
    116:     var options = <%= RedmineCkeditor.options.to_json.html_safe %>;
    117:     options.toolbar = toolbar;
    118:     CKEDITOR.replace('toolbar', options);
    119:   }
  app/views/settings/plugin.html.erb:6:in `block in _app_views_settings_plugin_html_erb___3013350514145003904_45707140'
  app/views/settings/plugin.html.erb:4:in `_app_views_settings_plugin_html_erb___3013350514145003904_45707140'

Now i can't configure plugin or even edit any content that use the ckeditor (wiki/x/edit, projects/x/settings).

I installed the plugin as described in README.rdoc, steps 1-6. I created and edit some wiki pages, then, I tried to customize the toolbar through plugin configuration.

Some environment details:

  • redmine 2.4.1 stable
  • redmine_ckeditor 1.0.15
  • ruby version 1.9.3-p194
  • rails version 3.2.15

@a-ono a-ono closed this in a3694bd Feb 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment