# TinyMCE

Object
TinyMCE_Layer
TinyMCE_Menu

### Class TinyMCE_Menu extends TinyMCE_Layer

Constructor Summary
TinyMCE_Menu() Constructor for the menu layer class.

Method Summary
void | add(<Object> mi) Adds a menu item object.
void | addDisabled(<string> t) Adds a disabled menu item, this is a static item that can't be clicked.
void | addItem(<string> t, <string> js) Adds a menu item.
void | addSeparator() Adds a menu separator line.
void | addTitle(<string> t) Adds a menu title, this is a static item that can't be clicked.
void | clear() Clears the menu.
void | init(<Array> s) Initializes the Menu with settings.
void | show() Displays the menu.
void | update() Update the menu with new HTML contents.

Methods inherited from TinyMCE_Layer
moveRelativeTo, moveBy, moveTo, resizeBy, resizeTo, show, hide, isVisible, getElement, setBlockMode, updateBlocker, getBlocker, getAbsPosition, create, exists, parseInt

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