scrivito_advanced_editors 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bc2bc12375a706efadde0e3f03e48032b56ca93
|
4
|
+
data.tar.gz: cc1ae4d33de41921d341530ed41e513d67066b51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a5c574c67b469ca2dd0ad7ea90f912a4d7fc565102233ae0aa108ed632dc215acbc02d106916e34631bab9e19f75aab11bc8f7516cfc995f9963f8966c79ec9
|
7
|
+
data.tar.gz: 8b92365a08da6031ce59d6087f3210f0416c14c04d271f670367b60d2e93ae3cbfdabc2d5807126c5e18fd1308944315cd4b2d35558e92fb5a1f1d9caba65869
|
@@ -0,0 +1,26 @@
|
|
1
|
+
(function($, App) {
|
2
|
+
'use strict';
|
3
|
+
|
4
|
+
$(function() {
|
5
|
+
|
6
|
+
App.textareaEditor = {
|
7
|
+
// set selector for Editor
|
8
|
+
selector: '[data-editor=scrivito-textarea-editor]',
|
9
|
+
|
10
|
+
blurFunction: function(cmsField) {
|
11
|
+
var text = cmsField.val();
|
12
|
+
return cmsField.scrivito('save', text);
|
13
|
+
}
|
14
|
+
};
|
15
|
+
|
16
|
+
scrivito.on('load', function() {
|
17
|
+
console.log();
|
18
|
+
return $('body').on('blur', textareaEditor.selector, function(event) {
|
19
|
+
if(scrivito.in_editable_view()) {
|
20
|
+
textareaEditor.blurFunction($(event.target));
|
21
|
+
}
|
22
|
+
});
|
23
|
+
});
|
24
|
+
});
|
25
|
+
|
26
|
+
})(jQuery, this);
|
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: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -80,6 +80,7 @@ files:
|
|
80
80
|
- app/assets/javascripts/scrivito_advanced_editors/scripts.js
|
81
81
|
- app/assets/javascripts/scrivito_advanced_editors/scrivito_list_editor.js
|
82
82
|
- app/assets/javascripts/scrivito_advanced_editors/scrivito_tabs.js
|
83
|
+
- app/assets/javascripts/scrivito_advanced_editors/scrivito_textarea_editor.js
|
83
84
|
- app/assets/javascripts/scrivito_advanced_editors/scrivito_toggle_button.js
|
84
85
|
- app/assets/stylesheets/scrivito_advanced_editors/jquery.tag-editor.css
|
85
86
|
- app/assets/stylesheets/scrivito_advanced_editors/scrivito_dialog.css
|