Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge pull request #267 from ckeditor/i/6272
Browse files Browse the repository at this point in the history
Fix: Pointer inside the restricted editing exception should be set to text for all children. Closes ckeditor/ckeditor5#6272.
  • Loading branch information
Reinmar authored Feb 26, 2020
2 parents 0c17040 + 6675095 commit a20d13b
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions theme/ckeditor5-restricted-editing/restrictedediting.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit a20d13b

Please sign in to comment.