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

t/104: Aligned the codebase after refactoring of the ck-editor-too… #105

Merged
merged 1 commit into from
Apr 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/imagetoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,18 @@ export default class ImageToolbar extends Plugin {
const promises = [];
const toolbar = new ToolbarView();

// Add CSS class to the toolbar.
Template.extend( toolbar.template, {
attributes: {
class: 'ck-editor-toolbar'
}
} );

// Add CSS class to the panel.
Template.extend( panel.template, {
attributes: {
class: [
'ck-toolbar__container'
'ck-toolbar-container'
]
}
} );
Expand Down
5 changes: 5 additions & 0 deletions tests/imagetoolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ describe( 'ImageToolbar', () => {
} );
} );

it( 'should set css classes', () => {
expect( panel.element.classList.contains( 'ck-toolbar-container' ) ).to.be.true;
expect( panel.content.get( 0 ).element.classList.contains( 'ck-editor-toolbar' ) ).to.be.true;
} );

it( 'should add ImageBalloonPanel to view body', () => {
expect( panel ).to.be.instanceOf( ImageBalloonPanel );
} );
Expand Down