The simplest way to get Raptor Editor onto the asset pipeline in your Rails applications.
Version 0.3.1 contains Raptor Editor 1.2.3.
This gem comes with a pre-packaged build Raptor Editor from the options in raptor.yml.
Add raptor-editor-rails to your Gemfile
:
gem "raptor-editor-rails"
Run bundle install
. Don't forget to restart your app!
Add Raptor Editor to your app/assets/javascripts/application.js
:
//= require raptor
Make elements of your site editable:
$("#my_editable_element").raptor();
See the Raptor Editor docs for more.
If you just want to copy Raptor Editor to your project, simply run
rails generate raptor_editor_rails:copy
. You'll find the assets in
vendor/assets/{javascripts,stylesheets}
.
If the pre-packaged build of Raptor Editor doesn't suit your requirements then
raptor-editor-rails
also allows you to create your own configuration and
download the latest version.
Run rails generate raptor_editor_rails:install
to copy config/raptor.yml
to your project.
Modify config/raptor.yml
to suit your needs.
Run rake raptor_editor_rails:fetch
to download the latest version to your
vendor/assets
directory.
For all issues related to raptor-editor-rails, please raise an issue on GitHub. If the issue is related to Raptor Editor, please raise an issue over there.
Better still, fork and contribute!
This gem, jquery-raptor-rails, is distributed under the MIT License.
Raptor Editor is distributed under GPL.
Please do not bump the version number. This will be done by the maintainers when a release is ready.
From the raptor-editor-rails
directory, run rake raptor_editor_rails:fetch
to download the latest build of Raptor Editor using the options in config/raptor.yml
.
Update the Raptor Editor version number in lib/raptor_editor_rails/version.rb
and README.md
to the value at the top of raptor.js
.
Run rake raptor_editor_rails:fetch RAPTOR_CONFIG=debug
.
Options for debug (or any other custom) config are in config/raptor.yml
.