浏览代码

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.
 	 *