Przeglądaj źródła

Merge branch 'master' into t/ckeditor5-engine/738

Kamil Piechaczek 7 lat temu
rodzic
commit
190d384c9d

+ 1 - 1
packages/ckeditor5-image/docs/features/image.md

@@ -148,7 +148,7 @@ See the result below:
 
 ### Defining custom styles
 
-Besides using the {@link module:image/imagestyle/imagestyleediting~ImageStyleEditing.defaultStyles 5 predefined styles}:
+Besides using the {@link module:image/imagestyle/utils~defaultStyles 5 predefined styles}:
 
 * `'imageStyleFull'`,
 * `'imageStyleSide'`,

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

@@ -91,7 +91,7 @@ export default class ImageStyle extends Plugin {
  * Note: Setting `title` to one of {@link module:image/imagestyle/imagestyleui~ImageStyleUI#localizedDefaultStylesTitles}
  * will automatically translate it to the language of the editor.
  *
- * Read more about styling images in the {@glink features/image#Image-styles Image styles guide}.
+ * Read more about styling images in the {@glink features/image#image-styles Image styles guide}.
  *
  * The feature creates commands based on defined styles, so you can change the style of a selected image by executing
  * the following command:

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

@@ -89,7 +89,7 @@ export default class ImageTextAlternativeUI extends Plugin {
 		/**
 		 * A form containing a textarea and buttons, used to change the `alt` text value.
 		 *
-		 * @member {module:image/imagetextalternative/ui/textalternativeformview~TextAlternativeFormView} #form
+		 * @member {module:image/imagetextalternative/ui/textalternativeformview~TextAlternativeFormView}
 		 */
 		this._form = new TextAlternativeFormView( editor.locale );
 

+ 3 - 3
packages/ckeditor5-image/tests/image/utils.js

@@ -62,7 +62,7 @@ describe( 'image widget utils', () => {
 			// We need to create a container for the element to be able to create a Range on this element.
 			frag = new ViewDocumentFragment( [ element ] );
 
-			const selection = new ViewSelection( [ ViewRange.createOn( element ) ] );
+			const selection = new ViewSelection( element, 'on' );
 
 			expect( isImageWidgetSelected( selection ) ).to.be.true;
 		} );
@@ -73,7 +73,7 @@ describe( 'image widget utils', () => {
 			// We need to create a container for the element to be able to create a Range on this element.
 			frag = new ViewDocumentFragment( [ notWidgetizedElement ] );
 
-			const selection = new ViewSelection( [ ViewRange.createOn( notWidgetizedElement ) ] );
+			const selection = new ViewSelection( notWidgetizedElement, 'on' );
 
 			expect( isImageWidgetSelected( selection ) ).to.be.false;
 		} );
@@ -83,7 +83,7 @@ describe( 'image widget utils', () => {
 
 			frag = new ViewDocumentFragment( [ element, notWidgetizedElement ] );
 
-			const selection = new ViewSelection( [ ViewRange.createIn( frag ) ] );
+			const selection = new ViewSelection( ViewRange.createIn( frag ) );
 
 			expect( isImageWidgetSelected( selection ) ).to.be.false;
 		} );