Adding and removing tools in the Editor toolset
The toolbar can be customized to include only those set of tools that are required. For example, you might like to exclude the option of inserting a table from the toolset bar, or you might like to include other options to format the text, say, changing the font color, highlighting the selected text, and so on.
How to do it…
When initializing the Editor widget, specify the tools option and include only those tools that are required to be displayed in the toolbar:
$("#editor").kendoEditor({ tools: [ "bold", "italic", "strikethrough", "subscript", "superscript", "foreColor", "backColor" ] });
In the preceding code snippet, the tools that should be displayed in the toolbar are mentioned. These would replace the default ones.
Note
The tools configuration option can include the Editor commands such as bold
, italic
, underline
, strikethrough
, subscript
, superscript
, fontName
, fontSize
, foreColor
, backColor
,...