activeadmin_tinymce 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/active_admin/tinymce/modal/_modal.slim +1 -0
- data/lib/active_admin/tinymce/version.rb +1 -1
- data/lib/active_admin_tinymce.rb +3 -1
- data/lib/assets/javascripts/admin_lib/init_tinymce.js +13 -3
- data/lib/generators/active_admin/tinymce/install/templates/active_admin_tinymce.rb +7 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c65e2e67c3a4a1cd9798e77742d7e14dfd945bfe
|
4
|
+
data.tar.gz: 3aa23549d358f5ebc19c303675bbb84ddee7933c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48433dd9f8376783bd46232875daca17d1c08b5de24a43e84de69e34fa8b516c081d30b0f850aa7a7abb030658d08695c20a5f36576b43918ea2573e6dd4e18d
|
7
|
+
data.tar.gz: 8dbe81447ec48bd0fa00601c2da3670a1faa36a0962ae6ac0633208f149eb595ae2cdd2e439bfa1b068b71632ed0dc260d7cad4074d6ce36d0e983369fb2760e
|
@@ -8,6 +8,7 @@
|
|
8
8
|
a.collection-image data-original="#{image.send(ActiveAdmin::Tinymce.attachment_attr_name).url(:original)}"
|
9
9
|
img src="#{image.send(ActiveAdmin::Tinymce.attachment_attr_name).url(:thumb)}"
|
10
10
|
div class="modal-footer"
|
11
|
+
= link_to 'Загрузить изображение', "/#{ActiveAdmin::Tinymce.admin_namespace}/#{ActiveAdmin::Tinymce.model_class.to_s.underscore.pluralize}/new"
|
11
12
|
button type="button" class="btn btn-primary action-ok" Ok
|
12
13
|
button type="button" data-dismiss="modal" class="btn close" Cancel
|
13
14
|
|
data/lib/active_admin_tinymce.rb
CHANGED
@@ -8,7 +8,7 @@ init = function() {
|
|
8
8
|
type: 'get',
|
9
9
|
url: '/modal',
|
10
10
|
success: function(response){
|
11
|
-
$('form').append(response)
|
11
|
+
$('form').append(response);
|
12
12
|
window.modal = new(Modal);
|
13
13
|
}
|
14
14
|
})
|
@@ -23,7 +23,17 @@ init = function() {
|
|
23
23
|
"searchreplace visualblocks code fullscreen",
|
24
24
|
"insertdatetime media table contextmenu paste"
|
25
25
|
],
|
26
|
-
|
26
|
+
style_formats: [
|
27
|
+
{
|
28
|
+
title: 'Основной текст',
|
29
|
+
block: 'p'
|
30
|
+
},{
|
31
|
+
title: 'Вставка',
|
32
|
+
block: 'p',
|
33
|
+
classes: 'colorado'
|
34
|
+
}
|
35
|
+
],
|
36
|
+
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
|
27
37
|
setup : function(ed) {
|
28
38
|
// Add a custom button
|
29
39
|
ed.addButton('insertfile', {
|
@@ -42,7 +52,7 @@ init = function() {
|
|
42
52
|
};
|
43
53
|
|
44
54
|
remove = function() {
|
45
|
-
tinymce.remove()
|
55
|
+
tinymce.remove();
|
46
56
|
return
|
47
57
|
};
|
48
58
|
$(document).on('page:load', init);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin_tinymce
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kerweb development team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -201,3 +201,4 @@ test_files:
|
|
201
201
|
- test/functional/modal_controller_test.rb
|
202
202
|
- test/unit/active_admin_tinymce_test.rb
|
203
203
|
- test/test_helper.rb
|
204
|
+
has_rdoc:
|