scrivito_editors 1.5.5 → 1.6.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/scrivito_editors.js +5 -1
  3. data/app/assets/javascripts/scrivito_editors/binary_editor.js +1 -6
  4. data/app/assets/javascripts/scrivito_editors/date_editor.js +1 -1
  5. data/app/assets/javascripts/scrivito_editors/default_editor.js +3 -12
  6. data/app/assets/javascripts/scrivito_editors/helpers/setup_button_container.js +19 -0
  7. data/app/assets/javascripts/scrivito_editors/image_editor.js +1 -1
  8. data/app/assets/javascripts/scrivito_editors/link_editor.js +6 -4
  9. data/app/assets/javascripts/scrivito_editors/linklist_editor.js +6 -4
  10. data/app/assets/javascripts/scrivito_editors/number_editor.js +88 -0
  11. data/app/assets/javascripts/scrivito_editors/redactor_editor.js +12 -3
  12. data/app/assets/javascripts/scrivito_editors/reference_editor.js +22 -7
  13. data/app/assets/javascripts/scrivito_editors/referencelist_editor.js +4 -4
  14. data/app/assets/javascripts/scrivito_editors/slider_editor.js +3 -3
  15. data/app/assets/stylesheets/scrivito_editors/ui_container.css +11 -11
  16. data/vendor/assets/javascripts/URI.js +56 -0
  17. data/vendor/assets/javascripts/medium-editor.js +184 -55
  18. data/vendor/assets/stylesheets/medium-editor-themes/flat.css +1 -1
  19. metadata +9 -18
  20. data/app/assets/javascripts/scrivito_editors/dependencies/jquery_ui.js.erb +0 -11
  21. data/app/assets/javascripts/scrivito_editors/deprecated_data_attrs.js +0 -44
  22. data/app/assets/javascripts/scrivito_editors/helpers/file_dropzone.js +0 -38
  23. data/app/assets/javascripts/scrivito_editors/helpers/setup_binary_button_container.js +0 -12
  24. data/app/assets/javascripts/scrivito_editors/image_drop_editor.js +0 -52
  25. data/app/assets/stylesheets/scrivito_editors/image_drop_editor.css +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b4fe623dfc9c65600c66b4bf951a496d1073877
4
- data.tar.gz: 3936b9ff497ce0fcbd43d7e13c68599a2b171659
3
+ metadata.gz: b1e64036fba4d9337ff09359bca23128bd2331ce
4
+ data.tar.gz: ad8cb2a6a261240c62a490899fd0e6b84de406cd
5
5
  SHA512:
6
- metadata.gz: e2ac308168f1bc7ce02c7fd090537cc4a38bf835b1320d85313f14f663ce62dd29207871273af8b251e89c105772eec603163c5bdb5ae521feb860611c76b585
7
- data.tar.gz: bce4346c5ec5af3a1261b6f391e6bd181887879e0d9be872ca8e9e9b92a4741b6214c47d4f5456603102781571cca412b682ec11d0c01a8788bf23011aedd182
6
+ metadata.gz: cd8bbbfc314996b164ead0662a4f6680124709d236260b49cfa19aea2a1dfa9b60c4244e9870c9058918ce793ff71fefe4fb1a78cf4269c2b23b545f81e81ab5
7
+ data.tar.gz: 747e1b0e15718226cb645d9c779ac1bff7321803a942e0ca86913c4d46b4c4698b811b43f2f5fc7853bb506f3697f463cffcb89ee76d78cd15c94261f578f48b
@@ -13,12 +13,16 @@
13
13
  //= require jquery.caret
14
14
  //= require jquery.tag-editor
15
15
  //= require medium-editor
16
- //= require_tree ./scrivito_editors/dependencies
16
+ //= require jquery-ui/sortable
17
+ //= require jquery-ui/datepicker
18
+ //= require jquery-ui/slider
17
19
  //= require jquery-ui-timepicker-addon.min
20
+ //= require jquery-ui/autocomplete
18
21
  //= require redactor
19
22
  //= require redactor_plugins/table
20
23
  //= require canvas-to-blob
21
24
  //= require imglykit
25
+ //= require URI
22
26
  //= require_self
23
27
  //= require scrivito_editors_sortable
24
28
  //= require_tree ./scrivito_editors
@@ -4,12 +4,7 @@
4
4
  activate = function(element) {
5
5
  var cmsField, container;
6
6
  cmsField = $(element);
7
- container = scrivito.editors._setup_binary_button_container(cmsField, 'scrivito-editor-binary-ui-container');
8
- scrivito.editors._file_dropzone(container, function(_, file) {
9
- return cmsField.scrivito('save', file).then(function() {
10
- return cmsField.scrivito('reload');
11
- });
12
- }, 'image-editor-dragover');
7
+ container = scrivito.editors._setupButtonContainer(cmsField);
13
8
  if (cmsField.scrivito('content') && cmsField.is('[data-scrivito-editors-allow-delete]')) {
14
9
  showDeleteButton(container, cmsField);
15
10
  }
@@ -10,7 +10,7 @@
10
10
  cmsField = datetimepickerElement.data('cmsField');
11
11
  datetime = datetimepickerElement.datetimepicker('getDate');
12
12
  return cmsField.scrivito('save', datetime).done(function() {
13
- cmsField.trigger('save.scrivito_editors');
13
+ cmsField.trigger('scrivito_editors:save');
14
14
  if (additionalDoneEvent) {
15
15
  return cmsField.trigger(additionalDoneEvent);
16
16
  }
@@ -1,25 +1,16 @@
1
1
  (function() {
2
2
  var COEXISTING_EDITORS, PRIMARY_EDITORS, default_editor;
3
3
 
4
- PRIMARY_EDITORS = ['date_editor', 'enum_editor', 'html_editor', 'image_editor', 'link_editor', 'linklist_editor', 'multienum_editor', 'permalink_editor', 'reference_editor', 'referencelist_editor', 'string_editor', 'stringlist_editor'];
4
+ PRIMARY_EDITORS = ['date_editor', 'enum_editor', 'html_editor', 'image_editor', 'link_editor', 'linklist_editor', 'multienum_editor', 'number_editor', 'permalink_editor', 'reference_editor', 'referencelist_editor', 'string_editor', 'stringlist_editor'];
5
5
 
6
- COEXISTING_EDITORS = ['binary_editor', 'image_drop_editor'];
6
+ COEXISTING_EDITORS = ['binary_editor'];
7
7
 
8
8
  default_editor = {
9
9
  can_edit: function() {
10
10
  return true;
11
11
  },
12
12
  activate: function(element) {
13
- var editor, i, j, legacyApiEditor, len, len1, ref;
14
- legacyApiEditor = $(element).data('editor');
15
- if (legacyApiEditor) {
16
- editor = legacyApiEditor + "_editor";
17
- console.warn("data-editor is deprecated, please use scrivito_tag(tag, obj, field_name, html_options, editor: '" + legacyApiEditor + "')");
18
- if ((ref = scrivito.editors[editor]) != null) {
19
- ref.activate(element);
20
- }
21
- return;
22
- }
13
+ var editor, i, j, len, len1;
23
14
  for (i = 0, len = COEXISTING_EDITORS.length; i < len; i++) {
24
15
  editor = COEXISTING_EDITORS[i];
25
16
  if (scrivito.editors[editor].can_edit(element)) {
@@ -0,0 +1,19 @@
1
+ (function() {
2
+ scrivito.editors._setupButtonContainer = function(element) {
3
+ var container, containerClass;
4
+ if (element.is('img')) {
5
+ containerClass = 'scrivito-editors-image-ui-container';
6
+ } else {
7
+ containerClass = 'scrivito-editors-ui-container';
8
+ }
9
+ container = element.parent(".scrivito-editor-button-container");
10
+ if (container.length) {
11
+ return container.addClass(containerClass);
12
+ } else {
13
+ container = element.wrap("<div class='" + containerClass + " scrivito-editor-button-container' />").parent();
14
+ element.css('min-height', container.css('min-height'));
15
+ return container;
16
+ }
17
+ };
18
+
19
+ }).call(this);
@@ -6,7 +6,7 @@
6
6
  };
7
7
 
8
8
  setup_edit_btn = function(element) {
9
- scrivito.editors._setup_binary_button_container(element, 'scrivito-editor-image-button-container');
9
+ scrivito.editors._setupButtonContainer(element);
10
10
  if (element.scrivito('content')) {
11
11
  return $("<a href='#' class='edit-image editing-button'> <i class='editing-icon editing-icon-edit'></i></a>").insertBefore(element).click(function(event) {
12
12
  event.preventDefault();
@@ -51,9 +51,11 @@
51
51
  };
52
52
 
53
53
  template = function(link) {
54
- var obj_url, url;
55
- obj_url = link.obj_id && scrivito.path_for_id(link.obj_id);
56
- url = link.url || obj_url || '';
54
+ var objUrl, url;
55
+ if (link.obj_id) {
56
+ objUrl = URI(scrivito.path_for_id(link.obj_id)).query(link.query || null).fragment(link.fragment || null);
57
+ }
58
+ url = link.url || objUrl || '';
57
59
  return $("<ul>\n <li data-id=\"" + (link.obj_id || '') + "\" data-target=\"\">\n <input type=\"text\" name=\"title\" value=\"" + (link.title || '') + "\" placeholder=\"Title\" />\n <input type=\"text\" name=\"url\" value=\"" + url + "\" data-value=\"" + url + "\" placeholder=\"URL\"\n class=\"editing-url\" />\n <div class=\"actions\">\n <div class=\"input_group_btn\">\n <a href=\"#\" class=\"editing-button editing-grey editing-clear\"\n data-scrivito-editors-toggle-target>\n <span class=\"scrivito_editors_current_target\"></span>\n <i class=\"scrivito_icon scrivito_icon_link_target\"></i>\n </a>\n <ul class=\"dropdown_menu\"></ul>\n </div>\n <a href=\"#\" class=\"editing-button content-browser-open editing-green\"\n data-scrivito-editors-browse>\n <i class=\"scrivito_icon scrivito_icon_content_browser\"></i>\n </a>\n </div>\n </li>\n</ul>");
58
60
  };
59
61
 
@@ -93,7 +95,7 @@
93
95
  url: url
94
96
  } : null;
95
97
  return cmsField.scrivito('save', value).done(function() {
96
- return cmsField.trigger('save.scrivito_editors');
98
+ return cmsField.trigger('scrivito_editors:save');
97
99
  });
98
100
  };
99
101
 
@@ -108,9 +108,11 @@
108
108
  };
109
109
 
110
110
  linkTemplate = function(link) {
111
- var obj_url, url;
112
- obj_url = link.obj_id && scrivito.path_for_id(link.obj_id);
113
- url = link.url || obj_url || '';
111
+ var objUrl, url;
112
+ if (link.obj_id) {
113
+ objUrl = URI(scrivito.path_for_id(link.obj_id)).query(link.query || null).fragment(link.fragment || null);
114
+ }
115
+ url = link.url || objUrl || '';
114
116
  return $("<li data-id=\"" + (link.obj_id || '') + "\" data-title=\"" + (link.title || '') + "\" data-url=\"" + url + "\"\n data-target=\"\">\n <span class=\"scrivito-editors-handle\"></span>\n <input type=\"text\" name=\"title\" value=\"" + (link.title || '') + "\" placeholder=\"Title\" />\n <input type=\"text\" name=\"url\" value=\"" + url + "\" data-value=\"" + url + "\" placeholder=\"URL\"\n class=\"editing-url\" />\n <div class=\"actions\">\n <div class=\"input_group_btn\">\n <a href=\"#\" class=\"editing-button editing-grey editing-clear\"\n data-scrivito-editors-toggle-target>\n <span class=\"scrivito_editors_current_target\"></span>\n <i class=\"scrivito_icon scrivito_icon_link_target\"></i>\n </a>\n <ul class=\"dropdown_menu\"></ul>\n </div>\n <a href=\"#\" class=\"editing-button content-browser-open editing-green\"\n data-scrivito-editors-browse>\n <i class=\"scrivito_icon scrivito_icon_content_browser\"></i>\n </a>\n <a href=\"#\" class=\"editing-button editing-red delete\">\n <i class=\"scrivito_icon scrivito_icon_trash\"></i>\n </a>\n </div>\n</li>");
115
117
  };
116
118
 
@@ -145,7 +147,7 @@
145
147
  lastSaved = cmsField.attr('data-scrivito-editors-linklist-last-saved');
146
148
  if (JSON.stringify(value) !== JSON.stringify(lastSaved)) {
147
149
  return cmsField.scrivito('save', value).done(function() {
148
- cmsField.trigger('save.scrivito_editors');
150
+ cmsField.trigger('scrivito_editors:save');
149
151
  return storeLastSaved(cmsField, value);
150
152
  });
151
153
  }
@@ -0,0 +1,88 @@
1
+ (function() {
2
+ var activate, canBeBlank, currentNumericInput, initInputTemplate, onInput, save, template;
3
+
4
+ template = function() {
5
+ return $('<input class="scrivito_number_editor" type="number" />');
6
+ };
7
+
8
+ onInput = function(event) {
9
+ var cmsField;
10
+ cmsField = $(event.currentTarget);
11
+ if (cmsField.find("input").is(":valid")) {
12
+ return save(cmsField);
13
+ }
14
+ };
15
+
16
+ save = function(cmsField) {
17
+ cmsField.find("input").attr("data-scrivito-editors-number-invalid", false);
18
+ return cmsField.scrivito('save', currentNumericInput(cmsField)).done(function() {
19
+ return cmsField.trigger('scrivito_editors:save');
20
+ }).fail(function() {
21
+ return cmsField.find("input").attr("data-scrivito-editors-number-invalid", true);
22
+ });
23
+ };
24
+
25
+ currentNumericInput = function(cmsField) {
26
+ var val;
27
+ val = cmsField.find("input").val();
28
+ if (val) {
29
+ return Number(val);
30
+ } else if (val === "" && canBeBlank(cmsField)) {
31
+ return null;
32
+ } else {
33
+ return NaN;
34
+ }
35
+ };
36
+
37
+ canBeBlank = function(cmsField) {
38
+ return cmsField.data("scrivito-editors-allow-delete") !== false;
39
+ };
40
+
41
+ initInputTemplate = function(cmsField) {
42
+ var html, max, min, stepParam;
43
+ html = template();
44
+ stepParam = cmsField.data('scrivito-editors-step');
45
+ max = cmsField.data('scrivito-editors-max');
46
+ min = cmsField.data('scrivito-editors-min');
47
+ if (cmsField.is('[data-scrivito-field-type=float]')) {
48
+ if (stepParam == null) {
49
+ stepParam = "any";
50
+ }
51
+ }
52
+ if (cmsField.is('[data-scrivito-field-type=integer]')) {
53
+ if (max == null) {
54
+ max = 9007199254740991;
55
+ }
56
+ if (min == null) {
57
+ min = -9007199254740991;
58
+ }
59
+ }
60
+ html.attr('step', stepParam);
61
+ html.attr('min', min);
62
+ html.attr('max', max);
63
+ html.attr('value', cmsField.scrivito('content'));
64
+ return html;
65
+ };
66
+
67
+ activate = function(element) {
68
+ var cmsField, html;
69
+ cmsField = $(element);
70
+ html = initInputTemplate(cmsField);
71
+ cmsField.html(html);
72
+ return cmsField.on('input', onInput);
73
+ };
74
+
75
+ scrivito.editors.number_editor = {
76
+ can_edit: function(element) {
77
+ return $(element).is("[data-scrivito-field-type=float],\n[data-scrivito-field-type=integer]");
78
+ },
79
+ activate: function(element) {
80
+ return activate(element);
81
+ }
82
+ };
83
+
84
+ scrivito.on('load', function() {
85
+ return scrivito.define_editor('number', scrivito.editors.number_editor);
86
+ });
87
+
88
+ }).call(this);
@@ -1,5 +1,5 @@
1
1
  (function() {
2
- var activate, closeEditor, defaultOptions, getCurrentContent, getOptions, saveContents;
2
+ var activate, closeEditor, defaultOptions, getCurrentContent, getOptions, saveContents, showDeprecationWarningOnce;
3
3
 
4
4
  this.RedactorPlugins || (this.RedactorPlugins = {});
5
5
 
@@ -106,7 +106,7 @@
106
106
  content = getCurrentContent(editor);
107
107
  if (content !== cmsField.scrivito('content')) {
108
108
  return cmsField.scrivito('save', content).done(function() {
109
- return cmsField.trigger('save.scrivito_editors');
109
+ return cmsField.trigger('scrivito_editors:save');
110
110
  });
111
111
  } else {
112
112
  return $.Deferred().resolve();
@@ -129,12 +129,20 @@
129
129
  activate = function(element) {
130
130
  var cmsField;
131
131
  cmsField = $(element);
132
- return cmsField.on('click', function(event) {
132
+ cmsField.on('click', function(event) {
133
133
  event.preventDefault();
134
134
  if (!cmsField.hasClass('scrivito_editors_redactor')) {
135
135
  return cmsField.redactor(getOptions()).addClass('scrivito_editors_redactor');
136
136
  }
137
137
  });
138
+ return showDeprecationWarningOnce();
139
+ };
140
+
141
+ showDeprecationWarningOnce = function() {
142
+ if (scrivito.editors.redactor_editor.deprecation_warning) {
143
+ console.warn(scrivito.editors.redactor_editor.deprecation_warning);
144
+ return delete scrivito.editors.redactor_editor.deprecation_warning;
145
+ }
138
146
  };
139
147
 
140
148
  scrivito.editors.redactor_editor = {
@@ -145,6 +153,7 @@
145
153
  return activate(element);
146
154
  },
147
155
  default_options: defaultOptions,
156
+ deprecation_warning: "The Scrivito Redactor editor is deprecated. See https://scrivito.com/editors for details.\nYou can continue to use Redactor, but there will be no updates in future Scrivito versions.\nScrivito recommends MediumEditor for smooth on-page editing, CodeMirror for HTML source editing.",
148
157
  options: {}
149
158
  };
150
159
 
@@ -1,10 +1,13 @@
1
1
  (function() {
2
- var activate, onContentBrowserSave;
2
+ var DELETE_BUTTON_TEMPLATE, activate, activateUi, save;
3
3
 
4
4
  activate = function(element) {
5
5
  var cmsField, objId;
6
6
  cmsField = $(element);
7
- if (!cmsField.is('video, audio, img')) {
7
+ if (cmsField.is('[data-scrivito-editors-allow-delete=true]')) {
8
+ activateUi(cmsField);
9
+ }
10
+ if (cmsField.not('video, audio, img')) {
8
11
  objId = cmsField.scrivito('content');
9
12
  if (objId && !cmsField.children().length) {
10
13
  scrivito.description_for_editor([objId]).then(function(results) {
@@ -30,17 +33,29 @@
30
33
  selection_mode: 'single'
31
34
  }).done((function(_this) {
32
35
  return function(selection) {
33
- return onContentBrowserSave(selection, cmsField);
36
+ return save(cmsField, selection[0] || null);
34
37
  };
35
38
  })(this));
36
39
  });
37
40
  };
38
41
 
39
- onContentBrowserSave = function(selection, cmsField) {
40
- var value;
41
- value = selection[0] || null;
42
+ activateUi = function(cmsField) {
43
+ var container;
44
+ container = scrivito.editors._setupButtonContainer(cmsField);
45
+ if (cmsField.scrivito('content')) {
46
+ return $(DELETE_BUTTON_TEMPLATE).prependTo(container).click(function() {
47
+ save(cmsField, null);
48
+ return false;
49
+ });
50
+ }
51
+ };
52
+
53
+ DELETE_BUTTON_TEMPLATE = "<a href='#' class='editing-button'>\n <i class='editing-icon editing-icon-trash'></i>\n</a>";
54
+
55
+ save = function(cmsField, value) {
42
56
  cmsField.scrivito('save', value).done(function() {
43
- cmsField.trigger('save.scrivito_editors');
57
+ cmsField.trigger('scrivito_editors:save');
58
+ cmsField.trigger('scrivito_editors:blur');
44
59
  return cmsField.scrivito('reload');
45
60
  });
46
61
  return true;
@@ -2,7 +2,7 @@
2
2
  var activate, collectIds, contentBrowserButtonTemplate, getCmsField, onContentBrowserOpen, remove, render, renderItem, save;
3
3
 
4
4
  renderItem = function(objId) {
5
- return $("<li data-scrivito-editors-obj-id=\"" + objId + "\">\n <span class=\"list-content\"></span>\n <div class=\"actions\">\n <a href=\"#\" class=\"editing-button editing-red delete\">\n <i class=\"editing-icon editing-icon-trash\" />\n </a>\n </div>\n</li>");
5
+ return $("<li data-id=\"" + objId + "\">\n <span class=\"list-content\"></span>\n <div class=\"actions\">\n <a href=\"#\" class=\"editing-button editing-red delete\">\n <i class=\"editing-icon editing-icon-trash\" />\n </a>\n </div>\n</li>");
6
6
  };
7
7
 
8
8
  contentBrowserButtonTemplate = function() {
@@ -21,7 +21,7 @@
21
21
  lastSaved = cmsField.scrivito('content');
22
22
  if (JSON.stringify(ids) !== JSON.stringify(lastSaved)) {
23
23
  return cmsField.scrivito('save', ids).done(function() {
24
- cmsField.trigger('save.scrivito_editors');
24
+ cmsField.trigger('scrivito_editors:save');
25
25
  if (reload) {
26
26
  return cmsField.scrivito('reload');
27
27
  }
@@ -49,13 +49,13 @@
49
49
 
50
50
  collectIds = function(cmsField) {
51
51
  var item, items, value;
52
- items = $(cmsField).find('[data-scrivito-editors-obj-id]');
52
+ items = $(cmsField).find('[data-id]');
53
53
  return value = (function() {
54
54
  var i, len, results;
55
55
  results = [];
56
56
  for (i = 0, len = items.length; i < len; i++) {
57
57
  item = items[i];
58
- results.push($(item).attr('data-scrivito-editors-obj-id'));
58
+ results.push($(item).data('id'));
59
59
  }
60
60
  return results;
61
61
  })();
@@ -10,7 +10,7 @@
10
10
  cmsField = $(this).data('cmsField');
11
11
  content = ui.value;
12
12
  return cmsField.scrivito('save', content).done(function() {
13
- cmsField.trigger('save.scrivito_editors');
13
+ cmsField.trigger('scrivito_editors:save');
14
14
  return cmsField.trigger('scrivito_editors:blur');
15
15
  });
16
16
  };
@@ -24,7 +24,7 @@
24
24
 
25
25
  parse = function(string, fallback) {
26
26
  var value;
27
- value = parseInt(string);
27
+ value = parseFloat(string);
28
28
  if (isNaN(value)) {
29
29
  return fallback;
30
30
  } else {
@@ -58,7 +58,7 @@
58
58
 
59
59
  scrivito.editors.slider_editor = {
60
60
  can_edit: function(element) {
61
- return $(element).is('[data-scrivito-field-type=string]');
61
+ return $(element).is("[data-scrivito-field-type=float],\n[data-scrivito-field-type=integer],\n[data-scrivito-field-type=string]");
62
62
  },
63
63
  activate: function(element) {
64
64
  return activate(element);
@@ -1,28 +1,28 @@
1
1
 
2
- .scrivito-editor-image-button-container {
2
+ .scrivito-editors-image-ui-container {
3
3
  display:inline-block; position: relative;
4
4
  max-width:100%;
5
5
  }
6
- .scrivito-editor-binary-ui-container:not(.scrivito-editor-image-button-container) {
6
+ .scrivito-editors-ui-container:not(.scrivito-editors-image-ui-container) {
7
7
  display:block; position: relative;
8
8
  box-shadow: 0 0 0 2px rgba(0,0,0,.2);
9
9
  min-height: 90px; padding:5px;
10
10
  }
11
11
 
12
- .scrivito-editor-binary-ui-container:not(.scrivito-editor-image-button-container):not(.scrivito_element_overlay) {
12
+ .scrivito-editors-ui-container:not(.scrivito-editors-image-ui-container):not(.scrivito_element_overlay) {
13
13
  background: rgba(0,0,0,.1);
14
14
  }
15
15
 
16
- .scrivito-editor-image-button-container .editing-button,
17
- .scrivito-editor-binary-ui-container .editing-button {
16
+ .scrivito-editors-image-ui-container .editing-button,
17
+ .scrivito-editors-ui-container .editing-button {
18
18
  padding: 5px 8px; margin: 0px;
19
19
  position: absolute; right: 10px; top: 10px;
20
20
  background: rgba(0,0,0,.7);
21
21
  border:1px solid rgba(255, 255, 255, 0.3);
22
22
  box-shadow: 0 0 3px 2px rgba(255, 255, 255, 0.2);
23
23
  }
24
- .scrivito-editor-image-button-container .editing-button:hover,
25
- .scrivito-editor-binary-ui-container .editing-button:hover {
24
+ .scrivito-editors-image-ui-container .editing-button:hover,
25
+ .scrivito-editors-ui-container .editing-button:hover {
26
26
  background: rgba(88,88,88,.8);
27
27
  }
28
28
  .scrivito_binary_file_name_editor_wrapper {position: absolute; left: 0; bottom: 0; right: 0;}
@@ -97,9 +97,9 @@
97
97
  z-index: 1;
98
98
  }
99
99
 
100
- .scrivito-editor-image-button-container .editing-button + .editing-button,
101
- .scrivito-editor-binary-ui-container .editing-button + .editing-button {
100
+ .scrivito-editors-image-ui-container .editing-button + .editing-button,
101
+ .scrivito-editors-ui-container .editing-button + .editing-button {
102
102
  right: 50px;
103
103
  }
104
- .scrivito-editor-image-button-container .editing-button .editing-icon,
105
- .scrivito-editor-binary-ui-container .editing-button .editing-icon { color:#fff;}
104
+ .scrivito-editors-image-ui-container .editing-button .editing-icon,
105
+ .scrivito-editors-ui-container .editing-button .editing-icon { color:#fff;}