-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Kendo UI Cookbook
By :
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.
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.
The tools configuration option can include the Editor commands such as bold, italic, underline, strikethrough, subscript, superscript, fontName, fontSize, foreColor, backColor,...
Change the font size
Change margin width
Change background colour