effective_bootstrap 0.1.10 → 0.1.11

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
  SHA1:
3
- metadata.gz: b9aaa5138b10510b13e98e2a795dada3fbece1bc
4
- data.tar.gz: '09dfbf8c49c1644dd65ba2e93cb63224c18bb54a'
3
+ metadata.gz: 16e5df6b769aa6d131ac59f5481a3d960762bf9a
4
+ data.tar.gz: aeb6a2c4235c972aec2e9f0cf0676e383f2ea176
5
5
  SHA512:
6
- metadata.gz: 4ced5e0ccdf0d0f79906ae000a7c5a6f3c0dca97e1ac73f7ce0871ceb7705ba55e55db1b97d3eb7b42b2d7dbb7ca3591317ff54a0d672b89d6a7317cc2ab80ed
7
- data.tar.gz: 8d5e3d89697fc1ccddda55ee851d76e48064229e8a8ebab577c4725a2e263f78e806feb5d84db96f87b8f04629310012cd0d96675f3fea900947e8a272c42a5f
6
+ metadata.gz: 0bda57cdfb75a7d8fbec0a9d9c22f84e7f18bde428e24177a34ff4a33ec10c9077d41834151093c1bc9deb0c4c5514c1349a30ea98405321507b9d0b311d5d15
7
+ data.tar.gz: 4f7ebc374cd633d91159722024b006afe666eab62c4789ea0b6c7e446dd2448a6a47ee27d601b9e5ca6598b9780d64d53a3f8ee459895fba2dba3e9eec8affb4
@@ -27,5 +27,7 @@
27
27
  (this.EffectiveBootstrap || {}).effective_editor_tag = ($element, options) ->
28
28
  quill = new Quill('#' + $element.attr('id'), options)
29
29
 
30
- if $element.data('delta')
31
- quill.setContents($element.data('delta'))
30
+ content = ($element.attr('data-delta') || '')
31
+
32
+ if content.length > 0
33
+ if content.startsWith('{') then quill.setContents($element.data('delta')) else quill.pasteHTML(content)
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.1.10'.freeze
2
+ VERSION = '0.1.11'.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.1.10
4
+ version: 0.1.11
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: 2018-08-31 00:00:00.000000000 Z
11
+ date: 2018-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails