sibu 0.1.18 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,22 @@
1
1
  //= require jquery
2
2
  //= require jquery_ujs
3
- //= require trix
3
+ //= require ../quill/quill
4
4
  //= require_self
5
5
 
6
- Trix.config.blockAttributes.default.tagName = "div"
6
+
7
+ Quill.register(Quill.import('attributors/style/align'), true);
8
+
9
+ function initQuillEditor(container) {
10
+ return new Quill(container, {
11
+ modules: {
12
+ toolbar: [
13
+ ['bold', 'italic', 'underline'], ['link'],
14
+ [{ 'color': [] }, { 'background': [] }],
15
+ [{ 'list': 'ordered'}, { 'list': 'bullet' }],
16
+ [{ 'align': [] }],
17
+ ['clean']
18
+ ]
19
+ },
20
+ theme: 'snow'
21
+ });
22
+ }