소스 검색

Detaching alternate text balloon panel instead of hiding.

Szymon Kupś 9 년 전
부모
커밋
dfb8de76a5
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      packages/ckeditor5-image/src/imagealternatetext/imagealternatetext.js

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

@@ -35,7 +35,6 @@ export default class ImageAlternateText extends Plugin {
 		this.editor.commands.set( 'imageAlternateText', new ImageAlternateTextCommand( this.editor ) );
 
 		// TODO: docs for this._panel and this._form.
-
 		return Promise.all( [
 			this._createButton(),
 			this._createBalloonPanel()
@@ -121,7 +120,7 @@ export default class ImageAlternateText extends Plugin {
 
 	_hideBalloonPanel() {
 		const editor = this.editor;
-		this._panel.hide();
+		this._panel.detach();
 		editor.editing.view.focus();
 
 		const imageToolbar = editor.plugins.get( ImageToolbar );