effective_form_inputs 1.4.0 → 1.5.0

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: 88550b46987c90edb9bb01a20d3ff521935692a6dd80d7ebeaeb6d0c24f45722
4
- data.tar.gz: fad585a100bdc29d3a7be5b8030fe715ea922081f1e59fc47f53788c65cbe648
3
+ metadata.gz: d1d1443620ed511b2fc490aecb385ec9c320af72e9965f8131c420ad8aa05417
4
+ data.tar.gz: 9b014c238823d359d90ec62e3989e3ba8969be0eecbb2e5b5f0d2f8bcf1618c6
5
5
  SHA512:
6
- metadata.gz: 226e750f1e9b3af3dbd3e32b370e07a2d73812fa2a15b464ce8a87031f253a9f00d5e7b5356ad44e4469ac9b433be01693b2e928587d215232383764b7a938f3
7
- data.tar.gz: 541baa0cb0c066f3f1d55ef17601f05b0981849891341871a812c2c4810bfc90ab8b2ffa023b841d6d843fd4b87e6dc8bf1c62420f3dbc4e0b225c617296ba37
6
+ metadata.gz: 6ba85acd9a1e0c220833b6ea9863cc2a81f6a30ee2ec3a1e258fda97ca85d6061bc02dd401e4727b33876dac68fb2b37828462ac87afaf086ce8b3e50e943d83
7
+ data.tar.gz: 7498bdded2acaf01a5733b6a74989736809d0a989f8a07fc68ede744df2fd74969d17635c0a335706e902bd5a50de11faa504eb24cfda4a5ec95d3e04bd22ec0
@@ -1,7 +1,6 @@
1
1
  //= require ./effective_ckeditor_text_area/input
2
2
  //= require ./effective_date_time_picker/input
3
3
  //= require ./effective_date_picker/input
4
- //= require ./effective_panel_select/input
5
4
  //= require ./effective_price/input
6
5
  //= require ./effective_select/input
7
6
  //= require ./effective_tel/input
@@ -1,4 +1,3 @@
1
1
  @import 'effective_date_time_picker/input';
2
2
  @import 'effective_radio_buttons/input';
3
- @import 'effective_panel_select/input';
4
3
  @import 'effective_select/input';
@@ -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
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '1.4.0'.freeze
2
+ VERSION = '1.5.0'.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: 1.4.0
4
+ version: 1.5.0
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-07 00:00:00.000000000 Z
11
+ date: 2024-09-24 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
@@ -156,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
157
  - !ruby/object:Gem::Version
157
158
  version: '0'
158
159
  requirements: []
159
- rubygems_version: 3.1.2
160
+ rubygems_version: 3.5.6
160
161
  signing_key:
161
162
  specification_version: 4
162
163
  summary: Collection of Form Inputs