Sha256: c5f724c501db2fad08e5810fb1735f5a111bd05e3687634ddbcfb95d666ba668

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

# Editarea::Rails

Gem for editarea


## Installation

Add this line to your application's Gemfile:

    gem 'editarea-rails'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install editarea-rails

## Usage

add to application.js

    //= require edit_area_full

view code:

    .row-fluid 
      .span12.content_unit.section
        %form
          %textarea#textarea{:name => "content", :style => "width:100%", :rows => 15}
            define_method :name, &block

javascript code:

    :javascript 
      editAreaLoader.init({
        id: "textarea",          // textarea id
        baseURL: "/assets/",     // defaults to ""
        imgPath: "",             // path to image assets, defaults to 'images/'
        syntax: "ruby",          // syntax to be uses for highgliting
        start_highlight: true,   // to display with highlight mode on start-up
        show_line_colors: true, 
        replace_tab_by_spaces: 4,
        allow_toggle: false
      });
    


## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
editarea-rails-1.0.2 README.md