From 702cc85d5b2829a4fac3418c9e76fb639ed102e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotrek=20Koszuli=C5=84ski?= Date: Tue, 6 Feb 2018 15:02:36 +0100 Subject: [PATCH] Added .ck class to the editable. See ckeditor/ckeditor5#494. --- src/editableui/editableuiview.js | 1 + tests/editableui/editableuiview.js | 1 + 2 files changed, 2 insertions(+) diff --git a/src/editableui/editableuiview.js b/src/editableui/editableuiview.js index e11d80ce..eec0d893 100644 --- a/src/editableui/editableuiview.js +++ b/src/editableui/editableuiview.js @@ -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' diff --git a/tests/editableui/editableuiview.js b/tests/editableui/editableuiview.js index 6af6069a..41179eba 100644 --- a/tests/editableui/editableuiview.js +++ b/tests/editableui/editableuiview.js @@ -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;