浏览代码

Docs: Minor corrections in image resize docs.

Aleksander Nowodzinski 5 年之前
父节点
当前提交
e3661dd1a6

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

@@ -129,7 +129,8 @@ export default class ImageResize extends Plugin {
  *
  * If you want to have separate buttons for {@link module:image/imageresize/imageresizeui~ImageResizeOption each option},
  * pass their names to the {@link module:image/image~ImageConfig#toolbar `config.image.toolbar`} instead. Please keep in mind
- * that this time **you must define the additional `icon` property**:
+ * that this time **you must define the additional
+ * {@link module:image/imageresize/imageresizeui~ImageResizeOption `icon` property}**:
  *
  *		ClassicEditor
  *			.create( editorElement, {

+ 3 - 3
packages/ckeditor5-image/src/imageresize/imageresizeui.js

@@ -275,15 +275,15 @@ function getIsOnButtonCallback( value ) {
  * An image resize option used in the {@link module:image/image~ImageConfig#resizeOptions image resize configuration}.
  *
  * @typedef {Object} module:image/imageresize/imageresizeui~ImageResizeOption
- * @property {String} resizeOption.name A name of the UI component that changes the image size.
+ * @property {String} name A name of the UI component that changes the image size.
  * * If you configure the feature using individual resize buttons, you can refer to this name in the
  * {@link module:image/image~ImageConfig#toolbar image toolbar configuration}.
  * * If you configure the feature using the resize dropdown, this name will be used for a list item in the dropdown.
- * @property {String} resizeOption.value A value of a resize option without the unit
+ * @property {String} value A value of a resize option without the unit
  * ({@link module:image/image~ImageConfig#resizeUnit configured separately}). `null` resets an image to its original size.
  * @property {String} [resizeOptions.icon] An icon used by an individual resize button (see the `name` property to learn more).
  * Available icons are: `'small'`, `'medium'`, `'large'`, `'original'`.
- * @property {String} [resizeOption.label] A label of the option displayed in the dropdown or, if the feature is configured using
+ * @property {String} [label] A label of the option displayed in the dropdown or, if the feature is configured using
  * individual buttons, a {@link module:ui/button/buttonview~ButtonView#tooltip} and an ARIA attribute of a button.
  * If not specified, the label is generated automatically based on the option `value` and the
  * {@link module:image/image~ImageConfig#resizeUnit `config.image.resizeUnit`}.