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: e773627e1f3b30dbffb3b5304541d57be6d52365
4
- data.tar.gz: 3e31578e0dff23360f4649b0145181d595141df6
3
+ metadata.gz: 8bc2bc12375a706efadde0e3f03e48032b56ca93
4
+ data.tar.gz: cc1ae4d33de41921d341530ed41e513d67066b51
5
5
  SHA512:
6
- metadata.gz: eb92d2b9bb8b939372cda167599d11ed578a918aeb6b8f36abd213e0cab89503b22218aa148f9763b7877340c80e46cc1050a904e90ecd1be63b270d0aead906
7
- data.tar.gz: 2674ac83b701208f206d9dd89eb3c348cb1d22936ac0a940b00bbfcb9632f8f867ccdd778c4a1e44ecd1dfe1e76610fe8444b692b4127a01182243fd8beaa09f
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);
@@ -23,3 +23,12 @@
23
23
  .details-view h5:first-child {
24
24
  margin-top: 0;
25
25
  }
26
+
27
+ .details-view abbr {
28
+ color: #444;
29
+ font-size: 13px;
30
+ }
31
+
32
+ .details-view abbr:after {
33
+ content: "?";
34
+ }
@@ -1,3 +1,3 @@
1
1
  module ScrivitoAdvancedEditors
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
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
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-16 00:00:00.000000000 Z
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