8
0
Просмотр исходного кода

Using the `.ck-read-only` class instead contenteditable CSS Selector.

dkonopka 7 лет назад
Родитель
Сommit
e31a8cd1a8

+ 1 - 1
packages/ckeditor5-ui/docs/_snippets/examples/bootstrap-ui-inner.html

@@ -71,7 +71,7 @@
 			}
 
 			/* When in read–only mode, the editable should fade out. */
-			.ck-editor .ck-editor__editable:not([contenteditable]) {
+			.ck-editor .ck-editor__editable.ck-read-only {
 				background: #fafafa;
 				color: hsl(0, 0%, 47%);
 			}

+ 1 - 1
packages/ckeditor5-ui/docs/framework/guides/external-ui.md

@@ -187,7 +187,7 @@ Although Bootstrap provides most of the CSS, it does not come with styles dedica
 }
 
 /* When in read–only mode, the editable should fade out. */
-.ck-editor .ck-editor__editable:not([contenteditable]) {
+.ck-editor .ck-editor__editable.ck-read-only {
 	background: hsl(0, 0%, 98%);
 	color: hsl(0, 0%, 47%);
 }