Kaynağa Gözat

Improved docs.

Oskar Wróbel 8 yıl önce
ebeveyn
işleme
ce3e3b87f5

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

@@ -45,7 +45,7 @@ export function isImageWidget( viewElement ) {
 }
 
 /**
- * Checks image widget is a selected element.
+ * Checks if an image widget is the only selected element.
  *
  * @param {module:engine/view/selection~Selection} viewSelection
  * @returns {Boolean}

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

@@ -120,7 +120,7 @@ export default class ImageTextAlternative extends Plugin {
 			cancel();
 		} );
 
-		// Reposition the balloon or hide the form if image widget is no longer selected.
+		// Reposition the balloon or hide the form if an image widget is no longer selected.
 		this.listenTo( editingView, 'render', () => {
 			if ( !isImageWidgetSelected( editingView.selection ) ) {
 				this._hideForm();

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

@@ -169,7 +169,7 @@ describe( 'ImageTextAlternative', () => {
 				sinon.assert.calledOnce( spy );
 			} );
 
-			it( 'should hide the form when image widget is no longer selected', () => {
+			it( 'should hide the form when image widget has been removed by external change', () => {
 				setData( doc, '[<image src=""></image>]' );
 				button.fire( 'execute' );