scrivito_advanced_editors 1.2.1 → 1.2.3
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/scripts/colapsable.js +1 -1
- data/app/assets/javascripts/scripts/color_picker.js +1 -1
- data/app/assets/javascripts/scripts/multi_select_button.js +2 -2
- data/app/assets/javascripts/scripts/scrivito_toggle_button.js +1 -1
- data/lib/scrivito_advanced_editors/version.rb +1 -1
- metadata +2 -3
- data/app/assets/javascripts/scripts/scrivito_textarea_editor.js +0 -33
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e285a69994a394b04dd38adab85a8f1e31239b9
|
4
|
+
data.tar.gz: d5d2a8079fac734f1c31e7f2dd60bbd12d216353
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb5ebcef0c835b0edffd6217b86af49674765878aad0040abe07cc72b014d7be4bc9477e9b101736f1b472b3e28f72de6fef7ea44643598caf457d2ad599d718
|
7
|
+
data.tar.gz: 05a43045aab8fb26f9bb918c197527b3b026ecfafc907482eea02d72efd0448b7b263c23f3992f919c2ece203224d3bc017c7d96ac36f82c834c42697b6242d5
|
@@ -15,8 +15,8 @@
|
|
15
15
|
}
|
16
16
|
};
|
17
17
|
|
18
|
-
scrivito.on('
|
19
|
-
return scrivito.define_editor('
|
18
|
+
scrivito.on('content', function() {
|
19
|
+
return scrivito.define_editor('toggle_multi_select_editor', multienum_editor);
|
20
20
|
});
|
21
21
|
|
22
22
|
activate = function(cmsField) {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_advanced_editors
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -82,7 +82,6 @@ files:
|
|
82
82
|
- app/assets/javascripts/scripts/details_accordion.js
|
83
83
|
- app/assets/javascripts/scripts/multi_select_button.js
|
84
84
|
- app/assets/javascripts/scripts/scrivito_tabs.js
|
85
|
-
- app/assets/javascripts/scripts/scrivito_textarea_editor.js
|
86
85
|
- app/assets/javascripts/scripts/scrivito_toggle_button.js
|
87
86
|
- app/assets/javascripts/scrivito_advanced_editors.js
|
88
87
|
- app/assets/stylesheets/scrivito_advanced_editors.css
|
@@ -1,33 +0,0 @@
|
|
1
|
-
(function($, App) {
|
2
|
-
'use strict';
|
3
|
-
|
4
|
-
var TextareaEditor = {
|
5
|
-
// set selector for Editor
|
6
|
-
selector: '[data-editor=scrivito-textarea-editor]',
|
7
|
-
|
8
|
-
initFunction: function() {
|
9
|
-
var editors = $(TextareaEditor.selector);
|
10
|
-
$.each(editors, function(i, editor) {
|
11
|
-
var textarea = $("<textarea></textarea>").val($(editor).html());
|
12
|
-
$(editor).html(textarea);
|
13
|
-
});
|
14
|
-
},
|
15
|
-
|
16
|
-
blurFunction: function(cmsField) {
|
17
|
-
var text = cmsField.val();
|
18
|
-
return cmsField.parent().scrivito('save', text);
|
19
|
-
}
|
20
|
-
};
|
21
|
-
|
22
|
-
scrivito.on('load', function() {
|
23
|
-
if(scrivito.in_editable_view()) {
|
24
|
-
TextareaEditor.initFunction();
|
25
|
-
}
|
26
|
-
return $('body').on('blur', TextareaEditor.selector + " textarea", function(event) {
|
27
|
-
if(scrivito.in_editable_view()) {
|
28
|
-
TextareaEditor.blurFunction($(event.target));
|
29
|
-
}
|
30
|
-
});
|
31
|
-
});
|
32
|
-
|
33
|
-
})(jQuery, this);
|