Преглед на файлове

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

Co-Authored-By: Marek Lewandowski <mlewand@users.noreply.github.com>
Mateusz Samsel преди 6 години
родител
ревизия
d91535e457
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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.
 	 *