effective_form_inputs 1.4.0 → 1.4.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4624dad3afab2b66e41bd59e747a041b09b33004ca7f692ac945214e1aef533
|
4
|
+
data.tar.gz: 2845abc1b9c2cec8b2e4b714fe809950c4ecd8a8e934156cf430e5b849c92251
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5f663aae4e0285161fa166cc2e670b84459164ef6b8a8e32549c8773abedf5215379ccaf5e89a863dee6b62504cbd85d1d7e8c285e410e8c1bee9ff9e953332
|
7
|
+
data.tar.gz: 1304cfc00aa446928924977e8c883bd260b7b665c6309f5b1f8209f1491f5c6b451410349eec88ed108b5474d5ca238cffa6e89286a096aa58d62b0548435d93
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module Effective
|
2
|
+
module FormBuilderInputs
|
3
|
+
class EffectiveCkeditorTextArea < Effective::FormBuilderInput
|
4
|
+
delegate :content_tag, :text_area_tag, :asset_path, :to => :@template
|
5
|
+
|
6
|
+
def default_input_js
|
7
|
+
{
|
8
|
+
effective_assets: defined?(EffectiveAssets).present?,
|
9
|
+
effective_ckeditor_js_path: asset_path('effective_ckeditor.js'),
|
10
|
+
effective_ckeditor_css_path: asset_path('effective_ckeditor.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
|
+
),
|
21
|
+
toolbar: options[:toolbar],
|
22
|
+
height: options[:height],
|
23
|
+
width: options[:width]
|
24
|
+
}.compact
|
25
|
+
end
|
26
|
+
|
27
|
+
def default_input_html
|
28
|
+
{class: 'effective_ckeditor_text_area text'}
|
29
|
+
end
|
30
|
+
|
31
|
+
def to_html
|
32
|
+
text_area_tag(field_name, value, tag_options)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
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: 1.4.
|
4
|
+
version: 1.4.1
|
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-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- app/helpers/effective_bootstrap3_helper.rb
|
106
106
|
- app/helpers/effective_form_inputs_helper.rb
|
107
107
|
- app/models/effective/form_builder_input.rb
|
108
|
+
- app/models/effective/form_builder_inputs/effective_ckeditor_text_area.rb
|
108
109
|
- app/models/effective/form_builder_inputs/effective_date_picker.rb
|
109
110
|
- app/models/effective/form_builder_inputs/effective_date_time_picker.rb
|
110
111
|
- app/models/effective/form_builder_inputs/effective_email.rb
|