sibu 0.5.4 → 0.5.5

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: 5dbd4071423106195be665291e990fbd1f551678
4
- data.tar.gz: d490a7c51354a32ccaaffea734a76a0e136d6e7a
3
+ metadata.gz: 99391b9dbd887ee530fa1e724f1ae033a0d6948f
4
+ data.tar.gz: 6d51210246f430bd9e51d8fd8a0944057a50e12c
5
5
  SHA512:
6
- metadata.gz: f28f07e0e3dd7788c46c99a02888d3f76f65ac835d55490b4e6796ef918b77d3a43a17411a5b188f4b6eab24e424529c36023d6f3920dc9f54940e71cee8333a
7
- data.tar.gz: 841817daf5b53c2f5568bbeb5834b3a31f1c7b305b3571a1a067aaf21497f3c2803633d70cdbc7108afbad42151df2c8336416525c76cd81e23377b285695e63
6
+ metadata.gz: 6206ebb58501a6da33071aeba6ef7980601661fe22638414e2313a8ce313fcfafdc44f781ff28879a10a4fd00d7af473435e0b06a1d2f15f37f4e4c59bd8c536
7
+ data.tar.gz: 3f8b3aa3344004c74e0c359edbaf29d691b5fe2feb63436b3258374a82d5fe996c34939a9a4b29c2b637dfd5001e318bb02766e5f85436b56fc5acf452774c47
@@ -32,8 +32,12 @@ Quill.register(IconBlot);
32
32
  Quill.register(Quill.import('attributors/style/align'), true);
33
33
 
34
34
  function initQuillEditor(container) {
35
- var quill = new Quill(container, {
36
- modules: {
35
+ var quillModules;
36
+ var modulesCallback = "sibuEditorModules";
37
+ if(typeof modulesCallback === "function") {
38
+ quillModules = modulesCallback();
39
+ } else {
40
+ quillModules = {
37
41
  toolbar: [
38
42
  ['bold', 'italic', 'underline'], ['link'],
39
43
  [{ 'color': [] }, { 'background': [] }],
@@ -42,7 +46,10 @@ function initQuillEditor(container) {
42
46
  ['facebook', 'twitter', 'instagram', 'pinterest'],
43
47
  ['clean']
44
48
  ]
45
- },
49
+ };
50
+ }
51
+ var quill = new Quill(container, {
52
+ modules: quillModules,
46
53
  theme: 'snow'
47
54
  });
48
55
 
@@ -1,3 +1,3 @@
1
1
  module Sibu
2
- VERSION = '0.5.4'
2
+ VERSION = '0.5.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sibu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Baptiste Vilain