# tinymce.plugins.ContextMenu

Namespace | tinymce.plugins
Class | ContextMenu

This plugin a context menu to TinyMCE editor instances.

## Public Methods

Method | Defined 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

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

## Method details

### getInfomethod

`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.

### initmethod

`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

ed:Editor | Editor instance that the plugin is initialized in.
url:string | Absolute URL to where the plugin is located.

## Event details

### onContextMenuevent

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

#### Parameters

sender:ContextMenu | Plugin instance sending the event.
menu:DropMenu | Drop down menu to fill with more items if needed.