Explorar o código

Update src/ui/colorui.js - improve docs description

Co-Authored-By: Marek Lewandowski <mlewand@users.noreply.github.com>
Mateusz Samsel %!s(int64=6) %!d(string=hai) anos
pai
achega
d91535e457
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/ckeditor5-font/src/ui/colorui.js

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

@@ -180,7 +180,7 @@ export default class ColorUI extends Plugin {
 	}
 
 	/**
-	 * Method tries to find a color on predefined color list to prevent of creating custom color from it.
+	 * 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.
 	 *