From 42f566fd4f8fb4da36e2e4077b4196c70832a602 Mon Sep 17 00:00:00 2001 From: Damian Konopka Date: Thu, 15 Feb 2018 10:47:51 +0100 Subject: [PATCH] Removed `ck-editor-toolbar` and `ck-editor-toolbar-container` classes from toolbar. --- src/toolbar/contextual/contextualtoolbar.js | 3 +-- tests/toolbar/contextual/contextualtoolbar.js | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/toolbar/contextual/contextualtoolbar.js b/src/toolbar/contextual/contextualtoolbar.js index 84fb8f42..ae226efe 100644 --- a/src/toolbar/contextual/contextualtoolbar.js +++ b/src/toolbar/contextual/contextualtoolbar.js @@ -53,7 +53,6 @@ export default class ContextualToolbar extends Plugin { this.toolbarView.extendTemplate( { attributes: { class: [ - 'ck-editor-toolbar', 'ck-toolbar_floating' ] } @@ -178,7 +177,7 @@ export default class ContextualToolbar extends Plugin { this._balloon.add( { view: this.toolbarView, position: this._getBalloonPositionData(), - balloonClassName: 'ck-toolbar-container ck-editor-toolbar-container' + balloonClassName: 'ck-toolbar-container' } ); } diff --git a/tests/toolbar/contextual/contextualtoolbar.js b/tests/toolbar/contextual/contextualtoolbar.js index f5ff3d4b..92a038bb 100644 --- a/tests/toolbar/contextual/contextualtoolbar.js +++ b/tests/toolbar/contextual/contextualtoolbar.js @@ -66,7 +66,6 @@ describe( 'ContextualToolbar', () => { expect( contextualToolbar ).to.instanceOf( Plugin ); expect( contextualToolbar ).to.instanceOf( ContextualToolbar ); expect( contextualToolbar.toolbarView ).to.instanceof( ToolbarView ); - expect( contextualToolbar.toolbarView.element.classList.contains( 'ck-editor-toolbar' ) ).to.be.true; expect( contextualToolbar.toolbarView.element.classList.contains( 'ck-toolbar_floating' ) ).to.be.true; } ); @@ -183,7 +182,7 @@ describe( 'ContextualToolbar', () => { sinon.assert.calledWith( balloonAddSpy, { view: contextualToolbar.toolbarView, - balloonClassName: 'ck-toolbar-container ck-editor-toolbar-container', + balloonClassName: 'ck-toolbar-container', position: { target: sinon.match.func, positions: [ @@ -226,7 +225,7 @@ describe( 'ContextualToolbar', () => { sinon.assert.calledWithExactly( balloonAddSpy, { view: contextualToolbar.toolbarView, - balloonClassName: 'ck-toolbar-container ck-editor-toolbar-container', + balloonClassName: 'ck-toolbar-container', position: { target: sinon.match.func, positions: [