Browse Source

Merge branch 'master' into t/96

Aleksander Nowodzinski 8 years ago
parent
commit
e202bf0a23

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

@@ -113,7 +113,7 @@ export default class ImageTextAlternative extends Plugin {
 		clickOutsideHandler( {
 			emitter: this._form,
 			activator: () => this._isVisible,
-			contextElement: this._form.element,
+			contextElements: [ this._form.element ],
 			callback: () => this._hideForm()
 		} );
 	}

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

@@ -68,7 +68,7 @@ describe( 'Image', () => {
 			// When image is selected along with text.
 			setModelData( newEditor.document, '<paragraph>fo[o</paragraph><image alt="alt text" src="foo.png"></image>]' );
 
-			contextualToolbar._showPanel();
+			contextualToolbar.show();
 
 			// ContextualToolbar should be visible.
 			expect( balloon.visibleView ).to.equal( contextualToolbar.toolbarView );
@@ -76,7 +76,7 @@ describe( 'Image', () => {
 			// When only image is selected.
 			setModelData( newEditor.document, '<paragraph>foo</paragraph>[<image alt="alt text" src="foo.png"></image>]' );
 
-			contextualToolbar._showPanel();
+			contextualToolbar.show();
 
 			// ContextualToolbar should not be visible.
 			expect( balloon.visibleView ).to.be.null;