8
0
فهرست منبع

Update the docs after content review.

panr 5 سال پیش
والد
کامیت
e90a9852e4
2فایلهای تغییر یافته به همراه9 افزوده شده و 9 حذف شده
  1. 8 8
      packages/ckeditor5-image/docs/features/image.md
  2. 1 1
      packages/ckeditor5-image/src/imageupload.js

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

@@ -84,17 +84,17 @@ See the {@link features/image-upload Image upload} guide.
 
 ## Insert image via URL
 
-Another great feature is an ability to insert an image via URL address. The feature is available under the dropdown of the **Image Upload** feature. When you click on the arrow button, you will see a small panel view containing the form for an image source URL. Once you fill it, you will be able to insert the image into the editor's content.
+Another great feature is the ability to insert an image via a URL address. This feature is available under the **Image Upload** feature dropdown. When you click on the arrow button, you will see a small panel view containing the form for an image source URL. Once you fill it, you will be able to insert the image into the editor's content.
 
 ### Replace image via URL
 
-Yet, another cool thing that the feature introduces is an ability to replace previously inserted image without loosing its styling and custom attributes (if it has ones). When you click on image and open the `{@link module:image/imageupload/ui/imageuploadpanelview~ImageUploadPanelView#dropdownView ImageUpload dropdown}` you will see that the **Insert image via url** form is already filled. This is the value of the selected image. You can easily edit it and update through the form.
+Yet another cool function that the feature introduces is the ability to replace a previously inserted image without loosing its styling and custom attributes (if it has ones). If you click on the image and open the `{@link module:image/imageupload/ui/imageuploadpanelview~ImageUploadPanelView#dropdownView ImageUpload dropdown}` you will see that the **Insert image via URL** form is already filled. This is the URL of the current image. You can easily edit it and update it through the form.
 
 <info-box>
 <strong>Bonus tip</strong>: You can even edit the URL of an image inserted from the native file system or from — for example — `{@link module:ckfinder/ckfinder~CKFinder}`.
 </info-box>
 
-Here's the short demo:
+Check it out in this short demo:
 
 {@snippet features/image-insert-via-url}
 
@@ -104,9 +104,9 @@ By default, this feature doesn't need any configuration. You will get a dropdown
 
 #### CKFinder
 
-We also support the integration with {@link module:ckfinder/ckfinder~CKFinder} in that dropdown, but that's something that needs to be configured.
+The integration with {@link module:ckfinder/ckfinder~CKFinder} in that dropdown is also supported, but it needs to be configured.
 
-Here's how you can do this:
+Use this method to do this:
 
 ```js
 ClassicEditor
@@ -130,7 +130,7 @@ ClassicEditor
 	})
 ```
 
-As you can see, we added here a new `{@link module:image/imageupload~ImageUploadPanelConfig#items image.upload.panel.items}` configuration, where we defined our desired built-in integrations. Both strings (`insertImageViaUrl` and `openCKFinder`) are special tokens that `{@link module:image/imageupload~ImageUpload}` plugin understands.
+Observe that a new `{@link module:image/imageupload~ImageUploadPanelConfig#items image.upload.panel.items}` configuration defines the desired built-in integrations. Both strings (`insertImageViaUrl` and `openCKFinder`) are special tokens that the `{@link module:image/imageupload~ImageUpload}` plugin understands.
 
 Below you can see the demo with built-in CKFinder integration:
 
@@ -168,9 +168,9 @@ ClassicEditor
 ```
 
 <info-box>
-Keep in mind that the order of the integrations in configuration equals the order of those views in the `{@link module:image/imageupload/ui/imageuploadpanelview~ImageUploadPanelView#dropdownView}`. So in the dropdown panel view you will have: **Insert image via URL** form, next **CKFinder** button and then your custom component for **PluginX**.
+Keep in mind that the order of the integrations in the configuration affects the options order in the `{@link module:image/imageupload/ui/imageuploadpanelview~ImageUploadPanelView#dropdownView}`. Therefore you will have: the **Insert image via URL** form, next **CKFinder** button and then your custom component for **PluginX** in the dropdown panel view.
 
-You can always change that order if you need.
+You can always change that order if you need by changing the order of the integrations.
 </info-box>
 
 ## Responsive images

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

@@ -114,7 +114,7 @@ export default class ImageUpload extends Plugin {
  *
  * The option accepts string tokens.
  * * for predefined integrations, we have two special strings: `insertImageViaUrl` and `openCKFinder`.
- * The former adds **Insert image via URL** feature, but the latter adds built-in **CKFinder** integration.
+ * The former adds **Insert image via URL** feature, while the latter adds built-in **CKFinder** integration.
  * * for custom integrations, each string should be a name of the already registered component.
  * If you have a plugin `PluginX` that registers `pluginXButton` component, then the integration token
  * in that case should be `pluginXButton`.