ソースを参照

Merge pull request #167 from ckeditor/t/ckeditor5/936

Internal: `.ck` class should not be added to elements inside editor editable. See ckeditor/ckeditor5#936.
Piotrek Koszuliński 7 年 前
コミット
def84758d5

+ 6 - 3
packages/ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css

@@ -3,7 +3,10 @@
  * For licensing, see LICENSE.md.
  */
 
-.ck.ck-placeholder::before {
-	cursor: text;
-	color: var(--ck-color-engine-placeholder-text);
+/* See ckeditor/ckeditor5#936. */
+.ck.ck-placeholder, .ck .ck-placeholder {
+	&::before {
+		cursor: text;
+		color: var(--ck-color-engine-placeholder-text);
+	}
 }

+ 1 - 1
packages/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css

@@ -8,7 +8,7 @@
 	--ck-image-upload-progress-line-width: 30px;
 }
 
-.ck.image {
+.ck-content .image {
 	/* Showing animation. */
 	&.ck-appear {
 		animation: fadeIn 700ms;

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

@@ -4,6 +4,6 @@
  */
 
 /* Class added to span element surrounding currently selected link. */
-.ck.ck-link_selected {
+.ck .ck-link_selected {
 	background: var(--ck-color-link-selected-background);
 }

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

@@ -13,7 +13,7 @@
 	--ck-color-widget-editable-focused-background: var(--ck-color-base-background),
 }
 
-.ck.ck-widget {
+.ck .ck-widget {
 	margin: var(--ck-spacing-standard) 0;
 	padding: 0;