From 5a56690c1be806c8aa57615ad5fb1eb8710e160e Mon Sep 17 00:00:00 2001 From: Babur Usenakunov Date: Mon, 11 Feb 2013 17:55:23 +0600 Subject: [PATCH] CKEditor support --- app/views/shared/editor_engines/_ck_editor.html.erb | 13 +++++++++++++ lib/spree_editor/engine.rb | 2 +- spree_editor.gemspec | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 app/views/shared/editor_engines/_ck_editor.html.erb diff --git a/app/views/shared/editor_engines/_ck_editor.html.erb b/app/views/shared/editor_engines/_ck_editor.html.erb new file mode 100644 index 0000000..b5564bc --- /dev/null +++ b/app/views/shared/editor_engines/_ck_editor.html.erb @@ -0,0 +1,13 @@ +<%= javascript_include_tag('ckeditor/init') %> + + + diff --git a/lib/spree_editor/engine.rb b/lib/spree_editor/engine.rb index 1df06bf..6e288dc 100644 --- a/lib/spree_editor/engine.rb +++ b/lib/spree_editor/engine.rb @@ -27,5 +27,5 @@ def self.activate config.to_prepare &method(:activate).to_proc end - EditorEngines = %w(WYMEditor TinyMCE) + EditorEngines = %w(CKEditor TinyMCE) end diff --git a/spree_editor.gemspec b/spree_editor.gemspec index fa7bfd2..1668be4 100644 --- a/spree_editor.gemspec +++ b/spree_editor.gemspec @@ -16,6 +16,7 @@ Gem::Specification.new do |s| s.add_dependency('tinymce-rails', '>= 3.4.7.0.1') s.add_dependency('spree_core', '>= 2.0.0.beta') + s.add_dependency('ckeditor') s.add_development_dependency 'rspec-rails' end