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 #365 from ckeditor/t/176
Browse files Browse the repository at this point in the history
Other: Added the `.ck-content` CSS class to the `EditableUIView` in order to simplify styling the editor content. Closes #176.
  • Loading branch information
Reinmar authored Feb 6, 2018
2 parents ff98211 + 702cc85 commit f38ae70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/editableui/editableuiview.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export default class EditableUIView extends View {
attributes: {
class: [
bind.to( 'isFocused', value => value ? 'ck-focused' : 'ck-blurred' ),
'ck',
'ck-editor__editable',
'ck-content',
'ck-rounded-corners'
],
contenteditable: bind.to( 'isReadOnly', value => !value ),
Expand Down
2 changes: 2 additions & 0 deletions tests/editableui/editableuiview.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ describe( 'EditableUIView', () => {

view.render();
expect( view.element ).to.equal( view.editableElement );
expect( view.element.classList.contains( 'ck' ) ).to.be.true;
expect( view.element.classList.contains( 'ck-editor__editable' ) ).to.be.true;
expect( view.element.classList.contains( 'ck-content' ) ).to.be.true;
expect( view.element.classList.contains( 'ck-rounded-corners' ) ).to.be.true;
expect( view.externalElement ).to.be.undefined;
expect( view.isRendered ).to.be.true;
Expand Down

0 comments on commit f38ae70

Please sign in to comment.