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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5edba324d57420161c259c53fd9582c0f59afe98
4
- data.tar.gz: caeefc144b49de7bb73b5c2001351afbbaa2d475
3
+ metadata.gz: f08180adbbe2880cfca59a8e43e6ee2629b04a14
4
+ data.tar.gz: 0c5ff00bb41139639f3a6bdca100960e209bfc48
5
5
  SHA512:
6
- metadata.gz: 633248a855b9adfe4c2060142135e90fe5735c2be15e9b283ec35f59afe1723e535436b4da53772e920f7d82e5cd62d6d298969eea429091f0b33da7e0167322
7
- data.tar.gz: fe76a2c2b512089ca9750934c0a34de3839c1a859a578b75cca738fd560817dae32feeb4f69149ebdf3ed45fced857abb1b0a8a8a84032b84e92ae961496635a
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 a CDN hosted bootstrap 3.3.6 stylesheet. This value can be an array of urls.
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 => asset_path('application.css')
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: (options[:contentCss] || asset_path('application.css')),
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]
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '0.9.7'.freeze
2
+ VERSION = '0.9.8'.freeze
3
3
  end
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.7
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-04 00:00:00.000000000 Z
11
+ date: 2016-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails