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

Commit 1c08fdd

Browse files
authored
Merge pull request #178 from ckeditor/t/ckeditor5-theme-lark/135
Other: Removed the `.ck-editor-toolbar` and `.ck-editor-toolbar-container` classes from the UI (see ckeditor/ckeditor5-theme-lark#135).
2 parents ae81506 + c632418 commit 1c08fdd

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

src/imagetoolbar.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import ContextualBalloon from '@ckeditor/ckeditor5-ui/src/panel/balloon/contextu
1313
import { isImageWidgetSelected } from './image/utils';
1414
import { repositionContextualBalloon, getBalloonPositionData } from './image/ui/utils';
1515

16-
const balloonClassName = 'ck-toolbar-container ck-editor-toolbar-container';
16+
const balloonClassName = 'ck-toolbar-container';
1717

1818
/**
1919
* The image toolbar class. Creates an image toolbar that shows up when the image widget is selected.
@@ -69,13 +69,6 @@ export default class ImageToolbar extends Plugin {
6969
*/
7070
this._toolbar = new ToolbarView();
7171

72-
// Add CSS class to the toolbar.
73-
this._toolbar.extendTemplate( {
74-
attributes: {
75-
class: 'ck-editor-toolbar'
76-
}
77-
} );
78-
7972
// Add buttons to the toolbar.
8073
this._toolbar.fillFromConfig( toolbarConfig, editor.ui.componentFactory );
8174

tests/imagetoolbar.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,9 @@ describe( 'ImageToolbar', () => {
7979

8080
setData( model, '[<image src=""></image>]' );
8181

82-
expect( toolbar.element.classList.contains( 'ck-editor-toolbar' ) ).to.be.true;
83-
8482
sinon.assert.calledWithMatch( spy, {
8583
view: toolbar,
86-
balloonClassName: 'ck-toolbar-container ck-editor-toolbar-container'
84+
balloonClassName: 'ck-toolbar-container'
8785
} );
8886
} );
8987
} );

0 commit comments

Comments
 (0)