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

I/5829: Add additional classes to editable to differentiate styling for each mode #9

Merged
merged 3 commits into from
Dec 20, 2019

Conversation

panr
Copy link
Contributor

@panr panr commented Dec 19, 2019

Suggested merge commit message (convention)

Other: Add hover state for all exeptions and fix width for collapsed exception in restricted editing. Closes ckeditor/ckeditor5#5829.


Additional information

@panr panr changed the title I/5829: Enhance restricted editing feature styling I/5829: Add additional classes to editable to differentiate styling for each mode Dec 19, 2019
@panr panr requested a review from Reinmar December 19, 2019 11:24
@panr panr self-assigned this Dec 19, 2019
@Reinmar Reinmar self-assigned this Dec 19, 2019
Copy link
Member

@Reinmar Reinmar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are needed.

@panr
Copy link
Contributor Author

panr commented Dec 19, 2019

Tests have been added. FYI: I loop over each root because in case if test environment changes to multiroot it will pass anyway.

@panr panr requested review from oleq and Reinmar December 19, 2019 20:21
@@ -40,6 +40,12 @@ describe( 'RestrictedEditingModeEditing', () => {
expect( editor.plugins.get( RestrictedEditingModeEditing ) ).to.be.instanceOf( RestrictedEditingModeEditing );
} );

it( 'should have "ck-restricted-editing_mode_restricted" class', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it( 'should have "ck-restricted-editing_mode_restricted" class', () => {
it( 'all roots should have "ck-restricted-editing_mode_restricted" class', () => {

@@ -35,6 +35,12 @@ describe( 'StandardEditingModeEditing', () => {
expect( editor.plugins.get( 'StandardEditingModeEditing' ) ).to.be.instanceOf( StandardEditingModeEditing );
} );

it( 'should have "ck-restricted-editing_mode_standard" class', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
it( 'should have "ck-restricted-editing_mode_standard" class', () => {
it( 'all roots should have "ck-restricted-editing_mode_standard" class', () => {

@Reinmar Reinmar merged commit de38be8 into master Dec 20, 2019
@Reinmar Reinmar deleted the i/5829 branch December 20, 2019 12:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance restricted editing feature styling
3 participants