Przeglądaj źródła

The type around buttons in the widgets should disappear when the editor is read–only.

Aleksander Nowodzinski 5 lat temu
rodzic
commit
096f6f3a1a

+ 1 - 1
packages/ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css

@@ -130,7 +130,7 @@
 	&:not(.ck-widget_selected) {
 		/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.
 		See: https://github.com/ckeditor/ckeditor5/issues/1261 */
-		--ck-widget-outline-thickness: 0;
+		--ck-widget-outline-thickness: 0px;
 	}
 
 	&.ck-widget_with-selection-handle {

+ 7 - 0
packages/ckeditor5-widget/theme/widgettypearound.css

@@ -75,3 +75,10 @@
 		}
 	}
 }
+
+/*
+ * Integration with the read-only mode of the editor
+ */
+.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {
+	display: none;
+}