Procházet zdrojové kódy

Docs: Image upload via URL API docs corrected. [skip ci]

Anna Tomanek před 5 roky
rodič
revize
ec73b77c36

+ 20 - 20
packages/ckeditor5-image/lang/contexts.json

@@ -1,23 +1,23 @@
 {
-	"image widget": "Label for the image widget.",
-	"Side image": "Label for the Side image option.",
-	"Full size image": "Label for the Full size image option.",
-	"Left aligned image": "Label for the Left aligned image option",
-	"Centered image": "Label for the Centered image option",
-	"Right aligned image": "Label for the Right aligned image option",
-	"Change image text alternative": "Label for the Change image text alternative button.",
-	"Text alternative": "Label for the image text alternative input.",
-	"Enter image caption": "Placeholder text for image caption displayed when caption is empty.",
-	"Insert image": "Label for the insert image toolbar button.",
-	"Upload failed": "Title of the notification displayed when upload fails.",
+	"image widget": "The label for the image widget.",
+	"Side image": "The label for the Side image option.",
+	"Full size image": "The label for the Full size image option.",
+	"Left aligned image": "The label for the Left aligned image option.",
+	"Centered image": "The label for the Centered image option.",
+	"Right aligned image": "The label for the Right aligned image option.",
+	"Change image text alternative": "The label for the Change image text alternative button.",
+	"Text alternative": "The label for the image text alternative input.",
+	"Enter image caption": "The placeholder text for the image caption displayed when the caption is empty.",
+	"Insert image": "The label for the insert image toolbar button.",
+	"Upload failed": "The title of the notification displayed when upload fails.",
 	"Image toolbar": "The label used by assistive technologies describing an image toolbar attached to an image widget.",
-	"Resize image": "The label used for the dropdown in the image toolbar containing defined resize options",
-	"Resize image to %0": "The label used for the standalone resize options buttons in the image toolbar",
-	"Resize image to the original size": "The accessibility label of the standalone image resize reset option button in the image toolbar for the screen readers",
-	"Original": "Default label for the resize option that resets the size of the image.",
-	"Image resize list": "The accessibility label of the image resize dropdown list for the screen readers.",
-	"Insert": "The label of submit form button if image src URL input has no value",
-	"Update": "The label of submit form button if image src URL input has value",
-	"Insert image via URL": "The input label for the Insert image via URL form",
-	"Paste the image source URL.": "The tip label below the Insert image via URL form"
+	"Resize image": "The label used for the dropdown in the image toolbar containing defined resize options.",
+	"Resize image to %0": "The label used for the standalone resize options buttons in the image toolbar.",
+	"Resize image to the original size": "The accessibility label of the standalone image resize reset option button in the image toolbar for screen readers.",
+	"Original": "The default label for the resize option that resets the size of the image.",
+	"Image resize list": "The accessibility label of the image resize dropdown for screen readers.",
+	"Insert": "The label of the form submit button if the image source URL input has no value.",
+	"Update": "The label of the form submit button if the image source URL input has a value.",
+	"Insert image via URL": "The input label for the Insert image via URL form.",
+	"Paste the image source URL.": "The content of the tip below the Insert image via URL form."
 }

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

@@ -142,7 +142,7 @@ export default class ImageUploadUI extends Plugin {
 	}
 
 	/**
-	 * Creates and sets up file dialog button view.
+	 * Creates and sets up the file dialog button view.
 	 *
 	 * @param {module:utils/locale~Locale} locale The localization services instance.
 	 *

+ 2 - 2
packages/ckeditor5-image/src/imageupload/ui/imageuploadformrowview.js

@@ -15,8 +15,8 @@ import '../../../theme/imageuploadformrowview.css';
  * The class representing a single row in a complex form,
  * used by {@link module:image/imageupload/ui/imageuploadpanelview~ImageUploadPanelView}.
  *
- * **Note**: For now this class is private. When more use cases arrive (beyond ckeditor5-table and ckeditor5-image),
- * it will become a component in ckeditor5-ui.
+ * **Note**: For now this class is private. When more use cases appear (beyond `ckeditor5-table` and `ckeditor5-image`),
+ * it will become a component in `ckeditor5-ui`.
  *
  * @private
  * @extends module:ui/view~View

+ 8 - 8
packages/ckeditor5-image/src/imageupload/ui/imageuploadpanelview.js

@@ -38,8 +38,8 @@ export default class ImageUploadPanelView extends View {
 	/**
 	 * Creates a view for the dropdown panel of {@link module:image/imageupload/imageuploadui~ImageUploadUI}.
 	 *
-	 * @param {module:utils/locale~Locale} [locale] The localization services instance..
-	 * @param {Object} [integrations] Integrations object that contain
+	 * @param {module:utils/locale~Locale} [locale] The localization services instance.
+	 * @param {Object} [integrations] An integrations object that contains
 	 * components (or tokens for components) to be shown in the panel view.
 	 */
 	constructor( locale, integrations ) {
@@ -69,7 +69,7 @@ export default class ImageUploadPanelView extends View {
 		this.dropdownView = this._createDropdownView( locale );
 
 		/**
-		 * Value of the URL input.
+		 * The value of the URL input.
 		 *
 		 * @member {String} #imageURLInputValue
 		 * @observable
@@ -122,7 +122,7 @@ export default class ImageUploadPanelView extends View {
 		} );
 
 		/**
-		 * Collection of the defined integrations for inserting the images.
+		 * A collection of the defined integrations for inserting the images.
 		 *
 		 * @private
 		 * @member {module:utils/collection~Collection}
@@ -214,7 +214,7 @@ export default class ImageUploadPanelView extends View {
 	}
 
 	/**
-	 * Creates dropdown view.
+	 * Creates the dropdown view.
 	 *
 	 * @param {module:utils/locale~Locale} locale The localization services instance.
 	 *
@@ -282,7 +282,7 @@ export default class ImageUploadPanelView extends View {
 	}
 
 	/**
-	 * Focuses the fist {@link #_focusables} in the form.
+	 * Focuses the first {@link #_focusables focusable} in the form.
 	 */
 	focus() {
 		this._focusCycler.focusFirst();
@@ -291,13 +291,13 @@ export default class ImageUploadPanelView extends View {
 
 /**
  * Fired when the form view is submitted (when one of the children triggered the submit event),
- * e.g. click on {@link #insertButtonView}.
+ * e.g. by a click on {@link #insertButtonView}.
  *
  * @event submit
  */
 
 /**
- * Fired when the form view is canceled, e.g. click on {@link #cancelButtonView}.
+ * Fired when the form view is canceled, e.g. by a click on {@link #cancelButtonView}.
  *
  * @event cancel
  */

+ 4 - 4
packages/ckeditor5-image/src/imageupload/utils.js

@@ -87,12 +87,12 @@ function getImageMimeType( blob, src ) {
 }
 
 /**
- * Creates integrations object that will be passed to the
+ * Creates an integrations object that will be passed to the
  * {@link module:image/imageupload/ui/imageuploadpanelview~ImageUploadPanelView}.
  *
- * @param {module:core/editor/editor~Editor} editor Editor instance.
+ * @param {module:core/editor/editor~Editor} editor The editor instance.
  *
- * @returns {Object.<String, module:ui/view~View>} Integrations object.
+ * @returns {Object.<String, module:ui/view~View>} The integrations object.
  */
 export function prepareIntegrations( editor ) {
 	const panelItems = editor.config.get( 'image.upload.panel.items' );
@@ -133,7 +133,7 @@ export function prepareIntegrations( editor ) {
 }
 
 /**
- * Creates labeled field view.
+ * Creates a labeled field view.
  *
  * @param {module:utils/locale~Locale} locale The localization services instance.
  *