Parcourir la source

Improved docs.

Szymon Kupś il y a 7 ans
Parent
commit
fb58014651

+ 1 - 1
packages/ckeditor5-heading/src/heading.js

@@ -111,6 +111,6 @@ export default class Heading extends Plugin {
  * @property {module:engine/view/elementdefinition~ElementDefinition} view Definition of a view element to convert from/to.
  * @property {String} title The user-readable title of the option.
  * @property {String} class The class which will be added to the dropdown item representing this option.
- * @property {Sting} [icon] Icon used by {@link module:heading/headingbuttonsui~HeadingsButtonUI}. It is optional when using
+ * @property {String} [icon] Icon used by {@link module:heading/headingbuttonsui~HeadingButtonUI}. It is optional when using
  * standard configuration and can be omitted.
  */

+ 3 - 3
packages/ckeditor5-heading/src/headingbuttonsui.js

@@ -21,11 +21,11 @@ const defaultIcons = {
 
 /**
  * HeadingButtonsUI class creates set of UI buttons that can be used instead of drop down component.
- * It is not enabled by default when using {@link module:heading/heading~Heading heading plugin}, and need to be
+ * It is not enabled by default when using {@link module:heading/heading~Heading heading plugin}, and needs to be
  * added manually to the editor configuration.
  *
- * It uses `icon` config option provided in {@link module:heading/heading~HeadingOption}. For the default configuration
- * standard icons are used.
+ * It is possible to use custom icons by providing `icon` config option provided in {@link module:heading/heading~HeadingOption}.
+ * For the default configuration standard icons are used.
  *
  * @extends module:core/plugin~Plugin
  */