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

Commit

Permalink
Added .ck class to the editable. See ckeditor/ckeditor5#494.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinmar committed Feb 6, 2018
1 parent d36229b commit 702cc85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/editableui/editableuiview.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ 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'
Expand Down
1 change: 1 addition & 0 deletions tests/editableui/editableuiview.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ 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;
Expand Down

0 comments on commit 702cc85

Please sign in to comment.