sibu 0.1.18 → 0.1.19
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/quill/quill.js +11402 -0
- data/app/assets/javascripts/sibu/sibu.js.erb +18 -2
- data/app/assets/stylesheets/quill/quill.snow.css +945 -0
- data/app/assets/stylesheets/sibu/sibu.css +1 -27
- data/app/helpers/sibu/pages_helper.rb +31 -20
- data/app/models/concerns/sibu/sections_concern.rb +10 -8
- data/app/models/sibu/image.rb +5 -1
- data/app/models/sibu/page.rb +6 -1
- data/app/views/layouts/sibu/edit_content.html.erb +3 -15
- data/app/views/sibu/pages/_error_panel.html.erb +4 -0
- data/app/views/sibu/pages/_form.html.erb +31 -6
- data/app/views/sibu/pages/_link_edit_panel.html.erb +13 -4
- data/app/views/sibu/pages/_media_edit_panel.html.erb +2 -2
- data/app/views/sibu/pages/_paragraph_edit_panel.html.erb +18 -0
- data/app/views/sibu/pages/_text_edit_panel.html.erb +4 -1
- data/app/views/sibu/pages/clone_element.js.erb +1 -5
- data/app/views/sibu/pages/clone_section.js.erb +1 -5
- data/app/views/sibu/pages/delete_element.js.erb +2 -3
- data/app/views/sibu/pages/delete_section.js.erb +1 -2
- data/app/views/sibu/pages/edit_element.js.erb +27 -6
- data/app/views/sibu/pages/update_element.js.erb +2 -2
- data/lib/sibu/engine.rb +0 -1
- data/lib/sibu/version.rb +1 -1
- metadata +6 -16
@@ -1,6 +1,22 @@
|
|
1
1
|
//= require jquery
|
2
2
|
//= require jquery_ujs
|
3
|
-
//= require
|
3
|
+
//= require ../quill/quill
|
4
4
|
//= require_self
|
5
5
|
|
6
|
-
|
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
|
+
}
|