Rails gem ckeditor loading custom config.js before it's own config -
Rails gem ckeditor loading custom config.js before it's own config -
i've installed ckeditor gem , working except custom toolbar definition. i'm working in development environment. checking inspector in chrome see custom.js file beingness requested before ckeditor gem's config , result beingness overwritten. think found crappy solution here, wondering if else has found improve solution.
here sample of current application.js config:
//= require jquery //= require jquery_ujs //= require jquery-ui //= require ckeditor/init //= require_tree ./ckeditor //= require_directory .
i have config.js file nested in assets-javascripts-ckeditor. using parameter :ckeditor => {:uicolor => "#d6a11a", :toolbar => "admin"}
in cktext_area form method. know beingness read because uicolor changes accordingly.
i never figured 1 out. upgrading latest version of ckeditor-rails gem , next of installation instructions letter has fixed issue. also, if have custom .js config files used ckeditor, create sure add together them precompile assets paths in application.rb.
ruby-on-rails ruby-on-rails-3 ckeditor
Comments
Post a Comment