Browse Source

Internal: Aligned the codebase after refactoring of the ck-editor-toolbar mixin in theme-lark.

Aleksander Nowodzinski 8 years ago
parent
commit
9376653106

+ 7 - 1
packages/ckeditor5-editor-inline/src/inlineeditoruiview.js

@@ -35,6 +35,12 @@ export default class InlineEditorUIView extends EditorUIView {
 		 */
 		this.toolbar = new ToolbarView( locale );
 
+		Template.extend( this.toolbar.template, {
+			attributes: {
+				class: 'ck-editor-toolbar'
+			}
+		} );
+
 		/**
 		 * A balloon panel view instance.
 		 *
@@ -47,7 +53,7 @@ export default class InlineEditorUIView extends EditorUIView {
 
 		Template.extend( this.panel.template, {
 			attributes: {
-				class: 'ck-toolbar__container'
+				class: 'ck-toolbar-container'
 			}
 		} );
 

+ 1 - 1
packages/ckeditor5-editor-inline/tests/inlineeditoruiview.js

@@ -38,7 +38,7 @@ describe( 'InlineEditorUIView', () => {
 			} );
 
 			it( 'is given the right CSS class', () => {
-				expect( view.panel.element.classList.contains( 'ck-toolbar__container' ) ).to.be.true;
+				expect( view.panel.element.classList.contains( 'ck-toolbar-container' ) ).to.be.true;
 			} );
 
 			it( 'is put into the #body collection', () => {

+ 0 - 4
packages/ckeditor5-editor-inline/theme/theme.scss

@@ -15,7 +15,3 @@
 		padding: 0 ck-spacing();
 	}
 }
-
-.ck-body .ck-toolbar {
-	@include ck-editor-toolbar();
-}