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
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
Param | Detail |
---|---|
ed:Editor | Editor instance that the plugin is initialized in. |
url:string | Absolute 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
Param | Detail |
---|---|
sender:ContextMenu | Plugin instance sending the event. |
menu:DropMenu | Drop down menu to fill with more items if needed. |
Was this article helpful? Yes - No
Well, that's awkward . Would you mind opening an issue or helping us out?
Thanks for the feedback!
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.