No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
The simplest way to get Raptor Editor onto the Asset Pipeline in your Rails applications.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

> 3.1
 Project Readme

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.

  1. Add raptor-editor-rails to your Gemfile:

    gem "raptor-editor-rails"
  2. Run bundle install. Don't forget to restart your app!

  3. Add Raptor Editor to your app/assets/javascripts/application.js:

    //= require raptor
  4. 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.

  1. Run rails generate raptor_editor_rails:install to copy config/raptor.yml to your project.

  2. Modify config/raptor.yml to suit your needs.

  3. Run rake raptor_editor_rails:fetch to download the latest version to your vendor/assets directory.

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

  1. Fork,
  2. Hack,
  3. 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

  1. 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.

  2. 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.

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.