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 +4 -4
- data/app/models/effective/form_inputs/article_editor.rb +15 -10
- data/lib/effective_bootstrap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e4006da022d1652bd4ca72bdc01f74262206efc1353d73b98e532b4c19c08b7
|
4
|
+
data.tar.gz: 2211cb0defef54a536616e3990f055454e09fb6344e9f612f014884122e76ad6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
6
|
-
|
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:
|
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
|
|
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.
|
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
|
+
date: 2021-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|