addToolbar

Availability: >= 3.0

Type: Object Method

Description: Adds a new toolbar to the toolbar layout.

Syntax:

$editor->addToolbarstring $idname, array $buttonids );

Parameters:

$idname
A unique ID name for the new toolbar. The toolbar ID can be used with the addRegisteredButton method to add items to a toolbar and with the removeToolbar method to remove a toolbar from the layout.

$buttonids
An array of button identifiers for the items to appear on the toolbar.

Example: 

// remove the default toolbar layout
$editor->clearToolbarLayout();

// add a new toolbar
$editor->addToolbar('toolbar1', array('styles','separator','bold','italic','underline','superscript','subscript','strikethrough''separator','image','link'));

See also:

toolbarLayout, clearToolbarLayout, removeToolbar, addRegisteredButton, disableFeatures