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

Commit f38ae70

Browse files
authoredFeb 6, 2018
Merge pull request #365 from ckeditor/t/176
Other: Added the `.ck-content` CSS class to the `EditableUIView` in order to simplify styling the editor content. Closes #176.
2 parents ff98211 + 702cc85 commit f38ae70

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed
 

‎src/editableui/editableuiview.js

+2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ export default class EditableUIView extends View {
3636
attributes: {
3737
class: [
3838
bind.to( 'isFocused', value => value ? 'ck-focused' : 'ck-blurred' ),
39+
'ck',
3940
'ck-editor__editable',
41+
'ck-content',
4042
'ck-rounded-corners'
4143
],
4244
contenteditable: bind.to( 'isReadOnly', value => !value ),

‎tests/editableui/editableuiview.js

+2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ describe( 'EditableUIView', () => {
3535

3636
view.render();
3737
expect( view.element ).to.equal( view.editableElement );
38+
expect( view.element.classList.contains( 'ck' ) ).to.be.true;
3839
expect( view.element.classList.contains( 'ck-editor__editable' ) ).to.be.true;
40+
expect( view.element.classList.contains( 'ck-content' ) ).to.be.true;
3941
expect( view.element.classList.contains( 'ck-rounded-corners' ) ).to.be.true;
4042
expect( view.externalElement ).to.be.undefined;
4143
expect( view.isRendered ).to.be.true;

0 commit comments

Comments
 (0)