瀏覽代碼

Merge pull request #267 from ckeditor/i/6272

Fix: Pointer inside the restricted editing exception should be set to text for all children. Closes ckeditor/ckeditor5#6272.
Piotrek Koszuliński 5 年之前
父節點
當前提交
0bae14d2cd
共有 1 個文件被更改,包括 13 次插入12 次删除
  1. 13 12
      packages/ckeditor5-theme-lark/theme/ckeditor5-restricted-editing/restrictedediting.css

+ 13 - 12
packages/ckeditor5-theme-lark/theme/ckeditor5-restricted-editing/restrictedediting.css

@@ -42,23 +42,24 @@
 	}
 }
 
-.ck-restricted-editing_mode_restricted .restricted-editing-exception {
-	cursor: text;
+.ck-restricted-editing_mode_restricted {
+	cursor: default;
 
+	/* We also have to override all elements inside the restricted editable to prevent cursor switching between default and text
+	during the pointer movement. */
 	& * {
-		cursor: text;
+		cursor: default;
 	}
 
-	&:hover {
-		background: var(--ck-color-restricted-editing-exception-hover-background);
-	}
-}
+	& .restricted-editing-exception {
+		cursor: text;
 
-.ck-restricted-editing_mode_restricted {
-	cursor: default;
+		& * {
+			cursor: text;
+		}
 
-	/* For some reason, we also need to override user agent styles for links inside the editor. */
-	& *:not(.restricted-editing-exception) {
-		cursor: default;
+		&:hover {
+			background: var(--ck-color-restricted-editing-exception-hover-background);
+		}
 	}
 }