effective_form_inputs 0.9.7 → 0.9.8
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.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/app/models/inputs/effective_ckeditor_text_area/input.rb +10 -1
- data/lib/effective_form_inputs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f08180adbbe2880cfca59a8e43e6ee2629b04a14
|
|
4
|
+
data.tar.gz: 0c5ff00bb41139639f3a6bdca100960e209bfc48
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a285bba33053a351b5c36a4f0f8a0b8f256e94cc242a06e9dfa5911181927963a31a448565ead4597e8e87310c97a16625136b3f0620bd8d29bb35920966a0b9
|
|
7
|
+
data.tar.gz: 0bfafbbfd9aa52856344e660b08cf735a1eea8a3d10b3c6450bcb2d365093633c23f335c68f17c8aa312802f276354ccebe40117d603f603604d658d477e1c26
|
data/README.md
CHANGED
|
@@ -666,10 +666,12 @@ You can specify the `height` and `width`:
|
|
|
666
666
|
|
|
667
667
|
And you can specify a `contentsCss` stylesheet:
|
|
668
668
|
|
|
669
|
-
By default, this loads
|
|
669
|
+
By default, this loads the `asset_path('application.css')` file, you can also specify `:bootstrap`, `false`, a string url, or an array of urls.
|
|
670
|
+
|
|
671
|
+
When `:bootstrap`, this loads a CDN hosted bootstrap 3.3.7 stylesheet.
|
|
670
672
|
|
|
671
673
|
```ruby
|
|
672
|
-
= f.input :body, :as => :effective_ckeditor_text_area, :contentsCss =>
|
|
674
|
+
= f.input :body, :as => :effective_ckeditor_text_area, :contentsCss => :bootstrap
|
|
673
675
|
```
|
|
674
676
|
|
|
675
677
|
|
|
@@ -8,7 +8,16 @@ module Inputs
|
|
|
8
8
|
effective_assets: defined?(EffectiveAssets).present?,
|
|
9
9
|
effective_ckeditor_js_path: asset_path('effective_ckeditor.js'),
|
|
10
10
|
effective_ckeditor_css_path: asset_path('effective_ckeditor.css'),
|
|
11
|
-
contentsCss: (
|
|
11
|
+
contentsCss: (
|
|
12
|
+
case options[:contentsCss]
|
|
13
|
+
when :bootstrap
|
|
14
|
+
'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'
|
|
15
|
+
when false
|
|
16
|
+
nil
|
|
17
|
+
else
|
|
18
|
+
options[:contentsCss] || asset_path('application.css')
|
|
19
|
+
end
|
|
20
|
+
),
|
|
12
21
|
toolbar: options[:toolbar],
|
|
13
22
|
height: options[:height],
|
|
14
23
|
width: options[:width]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: effective_form_inputs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Code and Effect
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-11-
|
|
11
|
+
date: 2016-11-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|