Browse Source

Fixed broken tests and invalid plugin name in Image class.

Kamil Piechaczek 8 years ago
parent
commit
970f898ea0
2 changed files with 3 additions and 3 deletions
  1. 1 1
      packages/ckeditor5-image/src/image.js
  2. 2 2
      packages/ckeditor5-image/tests/image.js

+ 1 - 1
packages/ckeditor5-image/src/image.js

@@ -42,7 +42,7 @@ export default class Image extends Plugin {
 	 */
 	init() {
 		const editor = this.editor;
-		const contextualToolbar = editor.plugins.get( 'ui/contextualtoolbar' );
+		const contextualToolbar = editor.plugins.get( 'ContextualToolbar' );
 
 		// If `ContextualToolbar` plugin is loaded, it should be disabled for images
 		// which have their own toolbar to avoid duplication.

+ 2 - 2
packages/ckeditor5-image/tests/image.js

@@ -60,8 +60,8 @@ describe( 'Image', () => {
 			plugins: [ Image, ContextualToolbar, Paragraph ]
 		} )
 		.then( newEditor => {
-			const balloon = newEditor.plugins.get( 'ui/contextualballoon' );
-			const contextualToolbar = newEditor.plugins.get( 'ui/contextualtoolbar' );
+			const balloon = newEditor.plugins.get( 'ContextualBalloon' );
+			const contextualToolbar = newEditor.plugins.get( 'ContextualToolbar' );
 
 			newEditor.editing.view.isFocused = true;