sizeMenu

Availability: >= 3.0

Type: Object Property

Description: Overwrites the size menu with new sizes.

Syntax:

$editor->sizeMenu = array $sizes;

The value should be an associative array of sizes where the array key is the size value and the array value is the label to appear on the menu.

Setting this property will overwrite the menu with new values. To manipulate the existing menu see sizeMenu, addSize, removeSize, clearSizeMenu.

Example:

$editor->sizeMenu = array(
    
'12' => '12 pixels',
    
'14' => '14 pixels',
    
'16' => '16 pixels',
 ); 

See also:

addSize, removeSize, clearSizeMenu.