effective_bootstrap 0.8.5 → 0.9.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: ade33f888106bb76e27393ff4df00caa77191edc2cc52a78b7fb4e493c9c9110
4
- data.tar.gz: c0e9d1338dd33e388f6d6824bac883f4a3317378800cca7c387e153808452b1c
3
+ metadata.gz: 4538dcdf672ff18dadb24146b5186498ffad746ff81d736fbfd24ba8f23a7f89
4
+ data.tar.gz: b0a95bd9c6d58c1a3cf86da55a871c5d5da85faa4296d9d5de3201bd6b45ba67
5
5
  SHA512:
6
- metadata.gz: 235ab74535c20e7d94bf83e2a28c7996fd4ff420b923a41de39046f4ff2e6ef36966bf71c5468e016a537a0a5ff88a5f3318ca554fec88dae8c045ddcdc58bf5
7
- data.tar.gz: 3a249ed15f0047c90dffe53ea90d677a9c9905f6b3265db7a5c4c5c2093b75bf2600c9318ff0bb64bd834901b524bf78936f49b2390008a9a63aa71e57653197
6
+ metadata.gz: 653f533b1ae794be6558a9da86c99fc4c69bab5fe19c85a16395a10b24d3c8d43c4878386586006dea73d1380177c09ffeb5fca5986dc317b452f5a003251ea9
7
+ data.tar.gz: eedc133811ffea31458b65ae3d2c76a2562b410ac285d25bdf07056568cc0ac587b708b310bcedc278f180bf769970ee5996f27afde0bd4ac0d04e2999bf76d4
data/README.md CHANGED
@@ -323,7 +323,7 @@ The end date selector will have its date <= start_date disabled.
323
323
  To disable this behaviour, call with `date_linked: false`.
324
324
 
325
325
  ```ruby
326
- = f.input :end_at, date_linked: false
326
+ = f.date_field :end_at, date_linked: false
327
327
  ```
328
328
 
329
329
  ### Events
@@ -334,6 +334,34 @@ More info is available here:
334
334
 
335
335
  http://eonasdan.github.io/bootstrap-datetimepicker/Events/
336
336
 
337
+ ## Custom editor
338
+
339
+ A drop in ready rich text editor based on
340
+
341
+ https://quilljs.com/
342
+
343
+ To use the editor, you must make additional javascript and stylesheet includes:
344
+
345
+ In your application.js
346
+
347
+ ```
348
+ //= require effective_bootstrap
349
+ //= require effective_bootstrap_editor
350
+ ```
351
+
352
+ In your application.scss
353
+
354
+ ```
355
+ @import 'effective_bootstrap';
356
+ @import 'effective_bootstrap_editor';
357
+ ```
358
+
359
+ And then in any form, instead of a text area:
360
+
361
+ ```
362
+ = f.editor :body
363
+ ```
364
+
337
365
  ## Custom percent_field
338
366
 
339
367
  This custom form input uses no 3rd party jQuery plugins.
@@ -622,6 +650,8 @@ The `f.save` is purely a input submit button.
622
650
  ```
623
651
 
624
652
 
653
+
654
+
625
655
  ## License
626
656
 
627
657
  MIT License. Copyright [Code and Effect Inc.](http://www.codeandeffect.com/)
@@ -13,7 +13,7 @@
13
13
  //= require ./effective_clear/input
14
14
  //= require ./effective_checks/input
15
15
  //= require ./effective_ck_editor/input
16
- //= require ./effective_editor/input
16
+
17
17
  //= require ./effective_file/input
18
18
  //= require ./effective_integer/input
19
19
  //= require ./effective_number_text/input
@@ -0,0 +1 @@
1
+ //= require ./effective_editor/input
@@ -1,4 +1,3 @@
1
- # http://eonasdan.github.io/bootstrap-datetimepicker/Options/
2
1
  (this.EffectiveBootstrap || {}).effective_ck_editor = ($element, options) ->
3
2
  setupCkeditor($element)
4
3
  initCkeditor($element, $element.data('input-js-options'))
@@ -69,4 +68,4 @@ initCkeditor = ($element, input_options) ->
69
68
  ckeditor.on 'insertElement', (event) ->
70
69
  element = $(event.data.$)
71
70
  if element.is('table')
72
- element.removeAttr('style').addClass('table')
71
+ element.removeAttr('style').addClass('table')
@@ -5,10 +5,8 @@
5
5
  @import 'effective_date/input';
6
6
  @import 'effective_time/input';
7
7
 
8
- @import 'effective_editor/input';
9
8
  @import 'effective_file/input';
9
+ @import 'effective_rich_text_area/input';
10
10
  @import 'effective_select/input';
11
11
  @import 'effective_select_or_text/input';
12
12
  @import 'effective_radio/input';
13
-
14
- @import 'effective_rich_text_area/input';
@@ -0,0 +1 @@
1
+ @import 'effective_editor/input';
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.8.5'.freeze
2
+ VERSION = '0.9.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
@@ -396,6 +396,7 @@ files:
396
396
  - app/assets/javascripts/effective_bootstrap/logic.js.coffee
397
397
  - app/assets/javascripts/effective_bootstrap/other.js.coffee
398
398
  - app/assets/javascripts/effective_bootstrap/tabs.js
399
+ - app/assets/javascripts/effective_bootstrap_editor.js
399
400
  - app/assets/javascripts/effective_checks/initialize.js.coffee
400
401
  - app/assets/javascripts/effective_checks/input.js
401
402
  - app/assets/javascripts/effective_ck_editor/initialize.js.coffee
@@ -572,6 +573,7 @@ files:
572
573
  - app/assets/stylesheets/effective_bootstrap/forms.scss
573
574
  - app/assets/stylesheets/effective_bootstrap/icons.scss
574
575
  - app/assets/stylesheets/effective_bootstrap/overrides.scss
576
+ - app/assets/stylesheets/effective_bootstrap_editor.scss
575
577
  - app/assets/stylesheets/effective_checks/input.scss
576
578
  - app/assets/stylesheets/effective_date/input.scss
577
579
  - app/assets/stylesheets/effective_datetime/bootstrap-datetimepicker.scss