Tools
configurationA collection of tools that are used to interact with the Editor. Tools may be switched on by specifying their name. Custom tools and tools that require configuration are defined as objects. The tools property can be a matrix - array of arrays. When defined in this manner, the tools in each internal array are grouped together.
The matrix approach (grouping of tools) works only with tools that are of type button. It does not work for the 'Font and color' tools.
The available editor commands are:
- Basic text formatting - bold, italic, underline, strikethrough, subscript, superscript
- Font and color - fontName, fontSize, foreColor, backColor
- Alignment - justifyLeft, justifyCenter, justifyRight, justifyFull
- Spacing - lineHeight
- Lists - insertUnorderedList, insertOrderedList, indent, outdent
- Links, images and files - createLink, unlink, insertImage, insertFile
- Table editing - tableWizard, createTable, addColumnLeft, addColumnRight, addRowAbove, addRowBelow, deleteRow, deleteColumn
- Structural markup and styles - formatting, cleanFormatting
- Snippets - insertHtml
- HTML code view - viewHtml
- Print edited page - print
- Export to PDF - pdf
- Format painter - copyFormat, applyFormat
- Formatting marks - formattingMarks
tools
Arraytools.columns
NumberSpecifies the colors columns for "foreColor" and "backColor" tools when list of colors are defined.
tools.exec
FunctionThe JavaScript function which will be executed when the end-user clicks the tool button.
tools.items
ArrayFor tools that display a list of items (fontName, fontSize, formatting), this option specifies the items in the shown list.
tools.name
StringWhen specifying a tool as an object, a tool name is required. Please note that "undo" and "redo" are reserved tool names.
tools.palette
String|ArraySpecifies the color palette for "foreColor" and "backColor" tools. If you need to use the color gradient view in the picker instead of the palette, set this value to null.
Default: "websafe"
tools.template
String|FunctionThe kendo template that will be used for rendering the given tool.
tools.tooltip
StringThe text which will be displayed when the end-user hovers the tool button with the mouse.
tools.ui
ObjectApart from the built-in tools, the Editor fully exposes the ToolBar.items API. This way you can specify any custom tools in the widget using the components available in the ToolBar itself.
All tools must have their name specified. All custom tools with no name will have "custom" automatically assigned as their name. As a result only one of them will be placed in the Editor ToolBar.