Przeglądaj źródła

Using the `.ck-read-only` class to disable all mouse interactions inside media as long as editor is read-only mode.

dkonopka 7 lat temu
rodzic
commit
f66486d0ec

+ 1 - 1
packages/ckeditor5-media-embed/theme/mediaembedediting.css

@@ -42,6 +42,6 @@
 
 /* Disable all mouse interaction as long as the editor is not read–only.
    https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */
-*[contenteditable=true] .ck-media__wrapper > *:not(.ck-media__placeholder) {
+.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {
 	pointer-events: none;
 }