effective_bootstrap 0.9.31 → 0.9.32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 584c4d0d13797315161c1cab7d06d01bded73ca4b61f74474c0d29377cba6685
4
- data.tar.gz: cbdafa332c3f34904786cf950e990f5c280715b3c1c8520ac1b22ada0082e8df
3
+ metadata.gz: 5e4006da022d1652bd4ca72bdc01f74262206efc1353d73b98e532b4c19c08b7
4
+ data.tar.gz: 2211cb0defef54a536616e3990f055454e09fb6344e9f612f014884122e76ad6
5
5
  SHA512:
6
- metadata.gz: eec51b158fb291465e683497c9b3832846ae516eae6b720725343af86562b8b08e172decaf295f07d434e26ca954dd33f765133639ddb6b37d2a83b7210ad4e6
7
- data.tar.gz: 6c2ea906dda835dbe77689e329a85c03bc0e10a752d68b4bad50f05b9f556c518371928a05602e3d299b2be151831f802e507cd2bbc54008820adbed99d2a991
6
+ metadata.gz: 854a6a64b6df52e43acd1ea92657bf77b3772046e6b09f244077347f9d060d9642ee17793e0f80ded0b77606505d883b2ffc2af49a6c595e1ed1509ac2415244
7
+ data.tar.gz: bec57138a80b59d82faa2647682636ae054a6cffebfdb3a00d1f1eb13452e534195d1b36cbedd6471d28aaa2520ddd2b5b7792e32eb5193c8a1378cb266c65e2
@@ -2,17 +2,10 @@ module Effective
2
2
  module FormInputs
3
3
  class ArticleEditor < Effective::FormInput
4
4
 
5
- def build_input(&block)
6
- @builder.super_text_area(name, options[:input])
7
- end
8
-
9
- def input_html_options
10
- { class: 'effective_article_editor form-control', id: unique_id, autocomplete: 'off' }
11
- end
12
-
13
- def input_js_options
5
+ # https://imperavi.com/article/docs/settings/
6
+ def self.defaults
14
7
  {
15
- active_storage: active_storage,
8
+ active_storage: nil,
16
9
  css: '/assets/article_editor/',
17
10
  custom: {
18
11
  css: ['/assets/application.css', '/assets/effective_bootstrap_article_editor.css']
@@ -62,6 +55,18 @@ module Effective
62
55
  }
63
56
  end
64
57
 
58
+ def build_input(&block)
59
+ @builder.super_text_area(name, options[:input])
60
+ end
61
+
62
+ def input_html_options
63
+ { class: 'effective_article_editor form-control', id: unique_id, autocomplete: 'off' }
64
+ end
65
+
66
+ def input_js_options
67
+ self.class.defaults.merge(active_storage: active_storage)
68
+ end
69
+
65
70
  def active_storage
66
71
  return @active_storage unless @active_storage.nil?
67
72
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.9.31'.freeze
2
+ VERSION = '0.9.32'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.31
4
+ version: 0.9.32
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: 2021-06-11 00:00:00.000000000 Z
11
+ date: 2021-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails