Browse Source

Merge pull request #262 from ckeditor/i/5992

Other: Set default cursor in restricted editing mode while restricted editing exceptions still have text cursor when you hover over them. Closes ckeditor/ckeditor5#5992.
Piotrek Koszuliński 5 years ago
parent
commit
54edf16e97

+ 17 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-restricted-editing/restrictedediting.css

@@ -39,3 +39,20 @@
 		padding-left: 1em;
 	}
 }
+
+.ck-restricted-editing_mode_restricted {
+	cursor: default;
+
+	/* For some reason, we also need to override user agent styles for links inside the editor. */
+	& *:not(.restricted-editing-exception) {
+		cursor: default;
+	}
+}
+
+.ck-restricted-editing_mode_restricted .restricted-editing-exception {
+	cursor: text;
+
+	& * {
+		cursor: text;
+	}
+}