TinyMCE

Object
TinyMCE_Layer
TinyMCE_Menu

Class TinyMCE_Menu extends TinyMCE_Layer

Constructor Summary
TinyMCE_Menu()
Constructor for the menu layer class.
Method Summary
voidadd(<Object> mi)
Adds a menu item object.
voidaddDisabled(<string> t)
Adds a disabled menu item, this is a static item that can't be clicked.
voidaddItem(<string> t, <string> js)
Adds a menu item.
voidaddSeparator()
Adds a menu separator line.
voidaddTitle(<string> t)
Adds a menu title, this is a static item that can't be clicked.
voidclear()
Clears the menu.
voidinit(<Array> s)
Initializes the Menu with settings.
voidshow()
Displays the menu.
voidupdate()
Update the menu with new HTML contents.

Constructor Detail

TinyMCE_Menu

TinyMCE_Menu()
Constructor for the menu layer class.

Method Detail

add

void add(<Object> mi)
Adds a menu item object.

Parameters

mi - Menu item object to add.

addDisabled

void addDisabled(<string> t)
Adds a disabled menu item, this is a static item that can't be clicked.

Parameters

t - Text to add to title.

addItem

void addItem(<string> t, <string> js)
Adds a menu item.

Parameters

t - Menu item text.
js - JS string to evaluate on click.

addSeparator

void addSeparator()
Adds a menu separator line.

addTitle

void addTitle(<string> t)
Adds a menu title, this is a static item that can't be clicked.

Parameters

t - Text to add to title.

clear

void clear()
Clears the menu.

init

void init(<Array> s)
Initializes the Menu with settings. This will also create the menu as a DIV element if it doesn't exists in the DOM.

Parameters

s - Name/Value array with settings.

show

void show()
Displays the menu. This function will automaticly hide any previously visible menus.

update

void update()
Update the menu with new HTML contents.