editarea-rails 0.0.1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.md +23 -0
  2. data/lib/editarea-rails/version.rb +1 -1
  3. metadata +3 -3
data/README.md CHANGED
@@ -19,8 +19,31 @@ Or install it yourself as:
19
19
 
20
20
  ## Usage
21
21
 
22
+ add to application.js
23
+
22
24
  //= require edit_area_full
23
25
 
26
+ view code:
27
+
28
+ .row-fluid
29
+ .span12.content_unit.section
30
+ %form
31
+ %textarea#textarea{:name => "content", :style => "width:100%", :rows => 15}
32
+ define_method :name, &block
33
+
34
+ javascript code:
35
+
36
+ :javascript
37
+ editAreaLoader.init({
38
+ id : "textarea" // textarea id
39
+ ,syntax: "ruby" // syntax to be uses for highgliting
40
+ ,start_highlight: true // to display with highlight mode on start-up
41
+ ,show_line_colors: true
42
+ ,replace_tab_by_spaces: 4
43
+ ,allow_toggle: false
44
+ });
45
+
46
+
24
47
 
25
48
  ## Contributing
26
49
 
@@ -1,5 +1,5 @@
1
1
  module Editarea
2
2
  module Rails
3
- VERSION = "0.0.1"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: editarea-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -191,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  segments:
193
193
  - 0
194
- hash: -540787757
194
+ hash: 421198765
195
195
  required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  none: false
197
197
  requirements:
@@ -200,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
200
200
  version: '0'
201
201
  segments:
202
202
  - 0
203
- hash: -540787757
203
+ hash: 421198765
204
204
  requirements: []
205
205
  rubyforge_project:
206
206
  rubygems_version: 1.8.24