raptor-editor-rails
The simplest way to get Raptor Editor onto the asset pipeline in your Rails applications.
Version
Version 0.3.1 contains Raptor Editor 1.2.3.
Usage
Using the pre-packaged build
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.
Copying Raptor Editor to your project
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}.
Downloading your own build
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:installto copyconfig/raptor.ymlto your project. -
Modify
config/raptor.ymlto suit your needs. -
Run
rake raptor_editor_rails:fetchto download the latest version to yourvendor/assetsdirectory.
Bugs, Issues and Feature Requests
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!
Licence
This gem, jquery-raptor-rails, is distributed under the MIT License.
Raptor Editor is distributed under GPL.
Contributing
- Fork,
- Hack,
- Create a Pull Request.
Please do not bump the version number. This will be done by the maintainers when a release is ready.
Getting the latest version of Raptor Editor
-
From the
raptor-editor-railsdirectory, runrake raptor_editor_rails:fetchto download the latest build of Raptor Editor using the options inconfig/raptor.yml. -
Update the Raptor Editor version number in
lib/raptor_editor_rails/version.rbandREADME.mdto the value at the top ofraptor.js.
Downloading a debug build
Run rake raptor_editor_rails:fetch RAPTOR_CONFIG=debug.
Options for debug (or any other custom) config are in config/raptor.yml.