registerSpacer

Availability: >= 3.0

Type: Object Method

Description: Registers a new spacer.

Syntax:

$editor->registerSpacerstring $idname [, int $width [, int $height]] );

Parameters:

$idname
Unique ID for this separator.

$width
Width of the spacer in pixels. The default is 22.

$height
Height of the spacer in pixels. The default is 22.

Note that there is no real need to register a new spacer, you can add a spacer to the toolbar layout like this:

$editor->addRegisteredButton('spacer','after:bold');

Registering a new separator is useful if you want the spacer to be a specific size or you think you might need to use the unique ID to position other buttons around the spacer on the toolbar. 

Once a new button has been registered you can add it to the toolbar layout using addRegisteredButton

See also:

registerButton, registerMenuButton, registerSelect, registerSeparator, registerTextButton