diff options
-rw-r--r-- | Gemfile | 3 | ||||
-rw-r--r-- | app/views/refinery/blog/admin/posts/_form_part.html.erb | 2 | ||||
-rw-r--r-- | app/views/refinery/blog/admin/posts/_teaser_part.html.erb | 2 | ||||
-rw-r--r-- | lib/refinery/blog.rb | 1 | ||||
-rw-r--r-- | readme.md | 12 | ||||
-rw-r--r-- | refinerycms-blog.gemspec | 1 |
6 files changed, 17 insertions, 4 deletions
@@ -10,6 +10,9 @@ git "https://github.com/refinery/refinerycms", branch: "master" do end end +# Add the default visual editor, for now. +gem 'refinerycms-wymeditor', ['~> 1.0', '>= 1.0.6'] + group :test do gem 'pry' gem 'launchy' diff --git a/app/views/refinery/blog/admin/posts/_form_part.html.erb b/app/views/refinery/blog/admin/posts/_form_part.html.erb index 114e493..4f78dc6 100644 --- a/app/views/refinery/blog/admin/posts/_form_part.html.erb +++ b/app/views/refinery/blog/admin/posts/_form_part.html.erb @@ -1,3 +1,3 @@ <div class='page_part' id='page_part_body'> - <%= f.text_area :body, :rows => 20, :class => 'wymeditor widest' -%> + <%= f.text_area :body, :rows => 20, :class => 'visual_editor widest' -%> </div> diff --git a/app/views/refinery/blog/admin/posts/_teaser_part.html.erb b/app/views/refinery/blog/admin/posts/_teaser_part.html.erb index 461a10c..3f7c8c8 100644 --- a/app/views/refinery/blog/admin/posts/_teaser_part.html.erb +++ b/app/views/refinery/blog/admin/posts/_teaser_part.html.erb @@ -1,5 +1,5 @@ <div class='page_part' id='page_part_teaser'> - <%= f.text_area :custom_teaser, :rows => 20, :class => 'wymeditor widest' -%> + <%= f.text_area :custom_teaser, :rows => 20, :class => 'visual_editor widest' -%> <p> <span class='clearfix label_inline_with_link'> <%= link_to t('copy_body', :scope => 'refinery.blog.admin.posts.form'), "#", diff --git a/lib/refinery/blog.rb b/lib/refinery/blog.rb index c601e4d..c62106c 100644 --- a/lib/refinery/blog.rb +++ b/lib/refinery/blog.rb @@ -1,6 +1,5 @@ require 'refinerycms-core' require 'refinerycms-settings' -require 'refinerycms-wymeditor' require 'rails_autolink' require 'friendly_id' require 'jquery-ui-rails' @@ -38,6 +38,18 @@ Finally seed your database and you're done. rake db:seed +## Visual Editor + +By default, this extension does not require any particular visual editor. +Previously, Refinery was coupled to WYMeditor but this has been extracted to an +extension, [refinerycms-wymeditor](https://github.com/parndt/refinerycms-wymeditor). + +If you want to use `refinerycms-wymeditor`, simply place it in your Gemfile: + +```ruby +gem 'refinerycms-wymeditor', ['~> 1.0', '>= 1.0.6'] +``` + ## Developing & Contributing The version of Refinery to develop this engine against is defined in the gemspec. To override the version of refinery to develop against, edit the project Gemfile to point to a local path containing a clone of refinerycms. diff --git a/refinerycms-blog.gemspec b/refinerycms-blog.gemspec index 75acccb..af5ac10 100644 --- a/refinerycms-blog.gemspec +++ b/refinerycms-blog.gemspec @@ -17,7 +17,6 @@ Gem::Specification.new do |s| # Runtime dependencies s.add_dependency 'refinerycms-core', '~> 3.0.0' s.add_dependency 'refinerycms-settings', '~> 3.0.0' - s.add_dependency 'refinerycms-wymeditor', '~> 1.0.1' s.add_dependency 'filters_spam', '~> 0.2' s.add_dependency 'acts-as-taggable-on' s.add_dependency 'seo_meta', '~> 2.0.0.rc.1' |