8
0
Pārlūkot izejas kodu

Docs: minor adjustments in the docs.

Marek Lewandowski 6 gadi atpakaļ
vecāks
revīzija
e893d7b053

+ 5 - 8
packages/ckeditor5-font/src/ui/colortableview.js

@@ -196,8 +196,8 @@ export default class ColorTableView extends View {
 	 *
 	 * All the previously stored document colors will be lost in the process.
 	 *
-	 * @param {module:engine/model/model~Model} model used as source to obtain document colors
-	 * @param {String} componentName determines what is name of related model's attribute for given dropdown
+	 * @param {module:engine/model/model~Model} model Model used as a source to obtain document colors.
+	 * @param {String} componentName Determines what is the name of related model's attribute for given dropdown.
 	 */
 	updateDocumentColors( model, componentName ) {
 		const document = model.document;
@@ -370,14 +370,11 @@ export default class ColorTableView extends View {
 	}
 
 	/**
-	 * Method adds the `color` to document colors list. If possible, it will attempt to use data from the
-	 * {@link #colorDefinitions} (label, color options). If color is found, then it is added to the
-	 * {@link module:font/ui/colortableview~ColorTableView#documentColors} model.
-	 * In other case it's created custom color, which is added to
-	 * {@link module:font/ui/colortableview~ColorTableView#documentColors} model.
+	 * Method adds a given `color` to the document colors list. If possible, method will attempt to use
+	 * data from the {@link #colorDefinitions} (label, color options).
 	 *
 	 * @private
-	 * @param {String} color String which stores value of recently applied color
+	 * @param {String} color String which stores value of recently applied color.
 	 */
 	_addColorToDocumentColors( color ) {
 		const predefinedColor = this.colorDefinitions

+ 1 - 1
packages/ckeditor5-font/src/ui/colorui.js

@@ -74,7 +74,7 @@ export default class ColorUI extends Plugin {
 		this.columns = editor.config.get( `${ this.componentName }.columns` );
 
 		/**
-		 * Keeps reference to {@link module:font/ui/colortableview~ColorTableView}.
+		 * Keeps a reference to {@link module:font/ui/colortableview~ColorTableView}.
 		 *
 		 * @member {module:font/ui/colortableview~ColorTableView}
 		 */