diff --git a/lib/sisyphus-rails/engine.rb b/lib/sisyphus-rails/engine.rb index 650193a..bfb66f1 100644 --- a/lib/sisyphus-rails/engine.rb +++ b/lib/sisyphus-rails/engine.rb @@ -25,7 +25,9 @@ module Sisyphus Sisyphus.config["INCLUDE_MODELS"] = ENV["INCLUDE_MODELS"].split(',') if ENV.include?("INCLUDE_MODELS") end + + app.config.assets.precompile << 'ckeditor/plugins/onchange/plugin.js' end end -end \ No newline at end of file +end diff --git a/vendor/assets/javascripts/ckeditor/plugins/onchange/plugin.js b/vendor/assets/javascripts/ckeditor/plugins/onchange/plugin.js index 56dd346..8b20497 100755 --- a/vendor/assets/javascripts/ckeditor/plugins/onchange/plugin.js +++ b/vendor/assets/javascripts/ckeditor/plugins/onchange/plugin.js @@ -146,3 +146,4 @@ CKEDITOR.plugins.add( 'onchange', } //Init } ); + diff --git a/vendor/assets/javascripts/sisyphus/ckeditor.js b/vendor/assets/javascripts/sisyphus/ckeditor.js deleted file mode 100644 index 6b47cba..0000000 --- a/vendor/assets/javascripts/sisyphus/ckeditor.js +++ /dev/null @@ -1,7 +0,0 @@ -//= require ckeditor/plugins/onchange/plugin.js -//= require_self - -(function() { - CKEDITOR.config.extraPlugins += ",onchange"; -})(this); -