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

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

dkonopka 7 лет назад
Родитель
Сommit
f66486d0ec
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      packages/ckeditor5-media-embed/theme/mediaembedediting.css

+ 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;
 }