Hide CKEditor’s resize controls for touch devices
authorAlexander Ebert <ebert@woltlab.com>
Mon, 26 Aug 2024 13:39:03 +0000 (15:39 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 26 Aug 2024 13:39:03 +0000 (15:39 +0200)
See https://www.woltlab.com/community/thread/307737-bild-anh%C3%A4nge-mobil-verkleinern/

wcfsetup/install/files/style/ui/ckeditor.scss

index bb43de2a6a87c5694299d317baa915985f54c7e8..5dd534cb4cf6497a6c2eb0109a4f8d23e6aa6814 100644 (file)
@@ -654,3 +654,11 @@ html.iOS {
                order: 2;
        }
 }
+
+@media (any-hover: none) {
+       /* The resize controls are not supported on touch devices.
+          See https://github.com/ckeditor/ckeditor5/issues/5624 */
+       .ck .ck-widget__resizer {
+               display: none !important;
+       }
+}