|
Adding Custom Tools
RadEditor provides a flexible
mechanism for adding custom tools. A custom tool can be a button, a
dropdown, or a custom rendered tool.
The type of tool is controlled from the "type" attribute in the
<tool> tag or by creating a specific tool type using the
ToolbarButton class, ToolbarDropDown class, and
CustomTool class.
One important thing is that tools functionality is implemented
exclusively on the client (using JavaScript).
The example above demonstrates three custom tools: one button, one dropdown and one
custom rendered tool. For an example how to implement and call a
custom dialog, please, refer to the "Adding Custom Dialogs" example.
The custom button and the dropdown simply execute
an alert statement. The custom rendered tool in this example simply
formats the text obtained from the textbox and pastes it into the content
area. |