Aleksander Nowodzinski 5 lat temu
rodzic
commit
d49ac30398

+ 1 - 1
packages/ckeditor5-link/src/linkimage.js

@@ -15,7 +15,7 @@ import LinkImageUI from './linkimageui';
  * The `LinkImage` plugin.
  *
  * This is a "glue" plugin that loads the {@link module:link/linkimageediting~LinkImageEditing link image editing feature}
- * and {@link module:link/linkimageui~LinkImageUI linkimage UI feature}.
+ * and {@link module:link/linkimageui~LinkImageUI link image UI feature}.
  *
  * @extends module:core/plugin~Plugin
  */

+ 3 - 1
packages/ckeditor5-link/src/linkimageui.js

@@ -20,7 +20,8 @@ import linkIcon from '../theme/icons/link.svg';
 /**
  * The link image UI plugin.
  *
- * The feature simply allows to link an image.
+ * This plugin brings a `'linkImage'` button that can be displayed in the {@link module:image/imagetoolbar~ImageToolbar}
+ * and used to wrap images in links.
  *
  * @extends module:core/plugin~Plugin
  */
@@ -73,6 +74,7 @@ export default class LinkImageUI extends Plugin {
 
 	/**
 	 * Creates a `LinkImageUI` button view.
+	 *
 	 * Clicking this button shows a {@link module:link/linkui~LinkUI#_balloon} attached to the selection.
 	 * When an image is already linked, the view shows {@link module:link/linkui~LinkUI#actionsView} or
 	 * {@link module:link/linkui~LinkUI#formView} if it's not.

+ 3 - 0
packages/ckeditor5-link/src/utils.js

@@ -12,6 +12,9 @@ import { upperFirst } from 'lodash-es';
 const ATTRIBUTE_WHITESPACES = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g; // eslint-disable-line no-control-regex
 const SAFE_URL = /^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;
 
+/**
+ * A keystroke used by the {@link module:link/linkui~LinkUI link UI feature}.
+ */
 export const LINK_KEYSTROKE = 'Ctrl+K';
 
 /**