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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b6fd08bd82c7f14733a887638792caedc53d439d
4
- data.tar.gz: bc316de26ba6d3489f0cc0480e27d4d4e52fb8c6
3
+ metadata.gz: 8e285a69994a394b04dd38adab85a8f1e31239b9
4
+ data.tar.gz: d5d2a8079fac734f1c31e7f2dd60bbd12d216353
5
5
  SHA512:
6
- metadata.gz: 450faca01ac84e7ddf2fdb6dd98b9bd612e565393dd454b0228f5dcf7ba692627244218b69152fe871343cdecc4a3b65ceffc0b9feb5ddf7d0d7d3ab9005a16f
7
- data.tar.gz: 69ea06ba2536d7ffc4fc644e5c5ef614fe8c08c9fb14e22678cc1f26d4aca4b5119debb5139dae0bc82604ec492dcd241ff53413b137486964e8222f59c65987
6
+ metadata.gz: bb5ebcef0c835b0edffd6217b86af49674765878aad0040abe07cc72b014d7be4bc9477e9b101736f1b472b3e28f72de6fef7ea44643598caf457d2ad599d718
7
+ data.tar.gz: 05a43045aab8fb26f9bb918c197527b3b026ecfafc907482eea02d72efd0448b7b263c23f3992f919c2ece203224d3bc017c7d96ac36f82c834c42697b6242d5
@@ -1,7 +1,7 @@
1
1
  (function($, App) {
2
2
  'use strict';
3
3
 
4
- scrivito.on('load', function() {
4
+ scrivito.on('content', function() {
5
5
  $('.scrivito_colapsable_headline').on('click', function() {
6
6
  $(this).parent().toggleClass('in');
7
7
  $(this).siblings().stop().slideToggle(300);
@@ -34,7 +34,7 @@
34
34
  },
35
35
  };
36
36
 
37
- scrivito.on('load', function() {
37
+ scrivito.on('content', function() {
38
38
  scrivito.define_editor("color_picker", {
39
39
  can_edit: function(element) {
40
40
  return $(element).is('[data-colors-list]');
@@ -15,8 +15,8 @@
15
15
  }
16
16
  };
17
17
 
18
- scrivito.on('load', function() {
19
- return scrivito.define_editor('multienum', multienum_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) {
@@ -14,7 +14,7 @@
14
14
  }
15
15
  };
16
16
 
17
- scrivito.on('load', function() {
17
+ scrivito.on('content', function() {
18
18
  return scrivito.define_editor('toggle_button_editor', enum_editor);
19
19
  });
20
20
 
@@ -1,3 +1,3 @@
1
1
  module ScrivitoAdvancedEditors
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.3"
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: 1.2.1
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-15 00:00:00.000000000 Z
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);