diff -u b/core/modules/image/css/editors/image.theme.css b/core/modules/image/css/editors/image.theme.css
--- b/core/modules/image/css/editors/image.theme.css
+++ b/core/modules/image/css/editors/image.theme.css
@@ -61,6 +61,7 @@
color: white;
font-family: "Droid sans", "Lucida Grande", sans-serif;
font-size: 16px;
+ user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
diff -u b/core/modules/image/js/theme.js b/core/modules/image/js/theme.js
--- b/core/modules/image/js/theme.js
+++ b/core/modules/image/js/theme.js
@@ -18,7 +18,7 @@
* @return {string}
* The corresponding HTML.
*/
- Drupal.theme.quickeditImageErrors = function(settings) {
+ Drupal.theme.quickeditImageErrors = function (settings) {
return '
' + settings.errors + '
';
};
@@ -39,7 +39,7 @@
Drupal.theme.quickeditImageDropzone = function (settings) {
return '' +
' ' +
- ' ' + settings.text +'' +
+ ' ' + settings.text + '' +
'
';
};
@@ -75,10 +75,10 @@
if (settings.title_field) {
html += ' ' +
' ' +
- ' ' +
+ ' ' +
'
';
}
- html += '';
+ html += '';
return html;
};
diff -u b/core/modules/image/src/Tests/QuickEditImageControllerTest.php b/core/modules/image/src/Tests/QuickEditImageControllerTest.php
--- b/core/modules/image/src/Tests/QuickEditImageControllerTest.php
+++ b/core/modules/image/src/Tests/QuickEditImageControllerTest.php
@@ -154,7 +154,7 @@
*
* @param object $image
* The image to upload.
- * @param integer $nid
+ * @param int $nid
* The target node ID.
* @param string $field_name
* The target field machine name.
diff -u b/core/modules/image/tests/src/FunctionalJavascript/QuickEditImageTest.php b/core/modules/image/tests/src/FunctionalJavascript/QuickEditImageTest.php
--- b/core/modules/image/tests/src/FunctionalJavascript/QuickEditImageTest.php
+++ b/core/modules/image/tests/src/FunctionalJavascript/QuickEditImageTest.php
@@ -170,2 +170,3 @@
}
+
}
diff -u b/core/themes/stable/css/image/editors/image.theme.css b/core/themes/stable/css/image/editors/image.theme.css
--- b/core/themes/stable/css/image/editors/image.theme.css
+++ b/core/themes/stable/css/image/editors/image.theme.css
@@ -61,6 +61,7 @@
color: white;
font-family: "Droid sans", "Lucida Grande", sans-serif;
font-size: 16px;
+ user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
@@ -73,13 +74,22 @@
}
.quickedit-image-field-info div {
- margin-right: 10px;
+ margin-right: 10px; /* LTR */
}
.quickedit-image-field-info div:last-child {
+ margin-right: 0; /* LTR */
+}
+
+[dir="rtl"] .quickedit-image-field-info div {
+ margin-left: 10px;
margin-right: 0;
}
+[dir="rtl"] .quickedit-image-field-info div:last-child {
+ margin-left: 0;
+}
+
.quickedit-image-errors .messages__wrapper {
margin: 0;
padding: 0;