You are here: Ektron Namespace > Server Controls API > Ektron.Cms Namespace > Ektron.Cms.Controls Namespace > Classes > HtmlEditor Class > HtmlEditor Properties > ToolbarResetCall
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
HtmlEditor.ToolbarResetCall Property

This specifies which JavaScript function to run when the toolbar resets. The toolbar reset offers the opportunity for the script to affect the operation of the toolbar with actions such as adding or removing commands, disabling commands, or creating entirely new toolbars. 

This is the name, not the full function definition, of a JavaScript function. The function must follow the format defined in the eWebEditPro documentation for this type of method. Below is an example: 

 

function initToolbarCommands(sEditor, strURL, strAutoURL)
{ ... }

 

Where the "initToolbarCommands" string is given to this property. 

A toolbar reset is only called when the toolbar actually resets. This often happens when the editor starts, however, if the user has been given the opportunity to save their own toolbar setup then this will not be called on startup. It is always called when the user selects to reset the toolbar. 

If this string is empty, the default CMS method is called.

C#
[Bindable(true)]
[Browsable(true)]
[DesignOnly(false)]
[Category("Ektron")]
[NotifyParentProperty(true)]
[ParenthesizePropertyName(false)]
[DefaultValue("")]
[Description("Specifies the JavaScript function to run when the toolbar is reset.")]
public string ToolbarResetCall;
Visual Basic
<Bindable(true)>
<Browsable(true)>
<DesignOnly(false)>
<Category("Ektron")>
<NotifyParentProperty(true)>
<ParenthesizePropertyName(false)>
<DefaultValue("")>
<Description("Specifies the JavaScript function to run when the toolbar is reset.")>
Public Property ToolbarResetCall() As string
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!