0 results found

tinymce.Plugin

Contribute to this page
Namespacetinymce
ClassPlugin

Plugin base class, this is a pseudo class that describes how a plugin is to be created for TinyMCE. The methods below are all optional.

Example

Public Methods

MethodDefined By
createControl(name:String, controlman:ControlManager):Control : Gets called when a new control instance is created.Plugin
getInfo():Object : Meta info method, this method gets executed when TinyMCE wants to present information about the plugin for example in th...Plugin
init(editor:Editor, url:String):void : Initialization function for the plugin.Plugin

Method details

createControl

public function createControl(name:String, controlman:ControlManager):Control
Gets called when a new control instance is created.

Parameters

ParamDetail
name:StringControl name to create for example "mylistbox"
controlman:ControlManagerControl manager/factory to use to create the control.

Returns
Control - Returns a new control instance or null.

Example

getInfo

public function getInfo():Object
Meta info method, this method gets executed when TinyMCE wants to present information about the plugin for example in the about/help dialog.

Returns
Object - Returns an object with meta information about the plugin the current items are longname, author, authorurl, infourl and version.

Example

init

public function init(editor:Editor, url:String):void
Initialization function for the plugin. This will be called when the plugin is created.

Parameters

ParamDetail
editor:EditorEditor instance that created the plugin instance.
url:StringAbsolute URL where the plugin is located.

Example

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.