wymeditor-simple_form 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -24,7 +24,7 @@ javascript file of your choosing (usually `application.js`, after the
24
24
 
25
25
  Render a form with a WYMeditor-enabled `textarea`:
26
26
 
27
- <%= simple_form_for(@comment) do |f| %>
27
+ <%= simple_form_for(@comment) do |f| %>
28
28
  <%= f.input :message, :as => :wymeditor %>
29
29
  <%= f.button :submit %>
30
30
  <% end %>
@@ -2,4 +2,6 @@
2
2
  #= require_self
3
3
 
4
4
  $ ->
5
- $('textarea.wymeditor').wymeditor()
5
+ $(':input.wymeditor').wymeditor
6
+ updateSelector: 'form:has(:input.wymeditor)'
7
+ updateEvent: 'submit'
@@ -1,5 +1,5 @@
1
1
  module Wymeditor
2
2
  module SimpleForm
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wymeditor-simple_form
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ben Caldwell