Skip to content

Commit 8f0c1bc

Browse files
docs(editor): fore and back colors (#263)
1 parent 7e6593d commit 8f0c1bc

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

components/editor/built-in-tools.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The sections below list the tools that come with the editor and provide the foll
3131

3232
* `Command Name` - the `commandName` of the tool for [executing it programmatically](#programmatic-execution).
3333

34-
* `Tool Type` - the type of the tool - whether it is a button or a dropdown. Only buttons can be added to tool groups in the [toolbar]({%slug editor-toolbars%}).
34+
* `Tool Type` - the type of the tool - whether it is a button, a dropdown or a color tool. Only buttons can be added to tool groups in the [toolbar]({%slug editor-toolbars%}).
3535

3636
* `Description` - more detailed information on what the tool does.
3737

@@ -72,6 +72,22 @@ The `Inline` tools work with or add an inline HTML element. Example of these are
7272
<td>new Bold()</td>
7373
<td>new ToolCommandArgs(string commandName)</td>
7474
</tr>
75+
<tr>
76+
<td>BackColor</td>
77+
<td>backColor</td>
78+
<td>Color</td>
79+
<td>Change the background color of the selected text</td>
80+
<td>new BackgroundColor()</td>
81+
<td>new FormatCommandArgs(string commandName, string Value)</td>
82+
</tr>
83+
<tr>
84+
<td>ForeColor</td>
85+
<td>foreColor</td>
86+
<td>Color</td>
87+
<td>Change the font color of a selected text</td>
88+
<td>new ForeColor()</td>
89+
<td>new FormatCommandArgs(string commandName, string Value)</td>
90+
</tr>
7591
<tr>
7692
<td>CreateLink</td>
7793
<td>createLink</td>
@@ -408,22 +424,6 @@ There are commands without built-in tools, but can be [executed programmatically
408424
<td>N/A</td>
409425
<td>new HtmlCommandArgs(string commandName, string value)</td>
410426
</tr>
411-
<tr>
412-
<td>Back Color</td>
413-
<td>backColor</td>
414-
<td>N/A</td>
415-
<td>Change the background color of the selected text</td>
416-
<td>N/A</td>
417-
<td>new FormatCommandArgs(string commandName, string Value)</td>
418-
</tr>
419-
<tr>
420-
<td>Fore Color</td>
421-
<td>foreColor</td>
422-
<td>N/A</td>
423-
<td>Change the font color of a selected text</td>
424-
<td>N/A</td>
425-
<td>new FormatCommandArgs(string commandName, string Value)</td>
426-
</tr>
427427
</tbody>
428428
</table>
429429

0 commit comments

Comments
 (0)