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 +4 -4
- data/app/assets/javascripts/sibu/sibu.js.erb +10 -3
- data/lib/sibu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99391b9dbd887ee530fa1e724f1ae033a0d6948f
|
4
|
+
data.tar.gz: 6d51210246f430bd9e51d8fd8a0944057a50e12c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
36
|
-
|
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
|
|
data/lib/sibu/version.rb
CHANGED