0 results found

tinymce.plugins.ContextMenu

Contribute to this page
Namespacetinymce.plugins
ClassContextMenu

This plugin a context menu to TinyMCE editor instances.

Public Methods

MethodDefined By
getInfo():Object : Returns information about the plugin as a name/value array.ContextMenu
init(ed:Editor, url:string):void : Initializes the plugin, this will be executed after the plugin has been created.ContextMenu

Public Events

EventDefined By
onContextMenu(sender:ContextMenu, menu:DropMenu) : This event gets fired when the context menu is shown.ContextMenu

Method details

getInfo

public function getInfo():Object
Returns information about the plugin as a name/value array. The current keys are longname, author, authorurl, infourl and version.

Returns
Object - Name/value array containing information about the plugin.

init

public function init(ed:Editor, url:string):void
Initializes the plugin, this will be executed after the plugin has been created. This call is done before the editor instance has finished it's initialization so use the onInit event of the editor instance to intercept that event.

Parameters

ParamDetail
ed:EditorEditor instance that the plugin is initialized in.
url:stringAbsolute URL to where the plugin is located.

Event details

onContextMenu

public event onContextMenu(sender:ContextMenu, menu:DropMenu)
This event gets fired when the context menu is shown.

Parameters

ParamDetail
sender:ContextMenuPlugin instance sending the event.
menu:DropMenuDrop down menu to fill with more items if needed.

Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.