From ec81b268c1608bb26384f30670aef1eb734384af Mon Sep 17 00:00:00 2001 From: John Bintz Date: Sun, 4 Nov 2012 13:09:50 -0500 Subject: [PATCH] finalize ckeditor integration --- lib/sisyphus-rails/engine.rb | 4 +++- .../assets/javascripts/ckeditor/plugins/onchange/plugin.js | 1 + vendor/assets/javascripts/sisyphus/ckeditor.js | 7 ------- 3 files changed, 4 insertions(+), 8 deletions(-) delete mode 100644 vendor/assets/javascripts/sisyphus/ckeditor.js 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); -