Edit this page


Executes RadEditor commands.

function fire(COMMAND_NAME, args)

argument type description
COMMAND_NAME string The command name represents the name of the tool as it is specified in the inner <telerik:EditorTool tag, in the code behind or in ToolsFile.xml.
args object Returns the needed information about the event

The example below demonstrates how to add a custom MyBold button to the editor's toolbar and when pressed to fire the editor's bold command:

<telerik:RadEditor RenderMode="Lightweight" ID="RadEditor1" runat="server">
            <telerik:EditorTool Name="MyBold" ShowText="true" ShowIcon="false" />
<script type="text/javascript">
    Telerik.Web.UI.Editor.CommandList["MyBold"] = function (commandName, editor, args)

The custom command should be placed BELOW the editor declaration.

See Also

Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article