Browse Source

Disabled user interactions with the rendered HTML in the view.

Kamil Piechaczek 5 years ago
parent
commit
bcab34ee5b

+ 5 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-html-embed/htmlembed.css

@@ -65,4 +65,9 @@
 			display: none;
 			display: none;
 		}
 		}
 	}
 	}
+
+	/* Disable all mouse interaction as long as the editor is not read–only. */
+	&:not(.ck-read-only) .raw-html--preview-enabled .raw-html__preview {
+		pointer-events: none;
+	}
 }
 }