New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Definition

Namespace:Telerik.Web.UI.Editor

Inheritance: Sys.UI.ControlTelerik.Web.UI.Editor.DefaultToolAdapter

Events

Adds a toolClick event handler for the defaulttooladapter

JS
add_toolClick
Parameters:handlerFunction

The event handler function to attach

Removes a toolClick event handler from the defaulttooladapter

JS
remove_toolClick
Parameters:handlerFunction

The event handler function to remove

Methods

Forces the context menus of the RadEditor to render.

JS
createContextMenus(): void

Sets the enable/disable state of the context menus.

JS
enableContextMenus(Boolean value): void
Parameters:valueBoolean

Indicates whether to disable or enable the context menus.

Returns the animation duration in milliseconds.

JS
get_animationDuration(): Number
Returns:

Number

Gets the animation type.

JS
get_animationType(): Telerik.Web.UI.Editor.EditorToolBarAnimationType
Returns:

Telerik.Web.UI.Editor.EditorToolBarAnimationType

Instance of Telerik.Web.UI.Editor.EditorToolBarAnimationType enum that represents the animation type.

Returns the value set to the ContnetAreaMode property.

JS
get_contentAreaMode(): Telerik.Web.UI.EditorContentAreaMode
Returns:

Telerik.Web.UI.EditorContentAreaMode

Returns the RadEditor instance initialized the toolbar.

JS
get_editor(): Telerik.Web.UI.RadEditor
Returns:

Telerik.Web.UI.RadEditor

Returns the RadWidnow instance which serves as a toolbar for the editor (NOTE: With Default and RibbonBar toolbar modes, returns null).

JS
get_toolbarHolder(): Telerik.Web.UI.RadWindow
Returns:

Telerik.Web.UI.RadWindow

Returns an array with the JSON literals of the tools.

JS
get_toolJSON(): Array
Returns:

Array

Returns all tools/commands available in the toolbar.

JS
get_tools(): Array
Returns:

Array

Returns the RadWidnow instance which serves as a toolbar for the editor (NOTE: With Default and RibbonBar toolbar modes, returns null).

JS
get_window(): Telerik.Web.UI.RadWindow
Returns:

Telerik.Web.UI.RadWindow

Returns a reference to the context menu object

JS
getContextMenuByTagName(String tagName): Telerik.Web.UI.EditorContextMenu
Parameters:tagNameString

The Tag name of the context menu

Returns:

Telerik.Web.UI.EditorContextMenu

Reference to the context menu object

Returns a reference to a tool, specified by its name.

JS
getToolByName(String toolName): Telerik.Web.UI.EditorButton
Parameters:toolNameString

The name of the tool

Returns:

Telerik.Web.UI.EditorButton

Sets the animation duration in milliseconds.

JS
set_animationDuration(Number value): void
Parameters:valueNumber

Sets the animation type.

JS
set_animationType(Telerik.Web.UI.Editor.EditorToolBarAnimationType value): void
Parameters:valueTelerik.Web.UI.Editor.EditorToolBarAnimationType

Instance of Telerik.Web.UI.Editor.EditorToolBarAnimationType enum.

Sets the RadEditor instance associated to the toolbar.

JS
set_editor(Telerik.Web.UI.RadEditor editor): void
Parameters:editorTelerik.Web.UI.RadEditor

Sets a new array with the JSON literals of the tools.

JS
set_toolJSON(Array value): void
Parameters:valueArray

Focuses the first tool in the toolbar.

JS
setFocus(): void

Sets the state of the tools in the specified tools array.

JS
setToolState(Array toolsArray, Telerik.Web.UI.Editor.CommandStates state): void
Parameters:toolsArrayArray

Array of RadEditor tools/commands (NOTE: If array is not provided, all tools will be updated with the new state).

stateTelerik.Web.UI.Editor.CommandStates

The state to be used for this group of tools.