Availability: >= 2.0

Type: Object Method

Description: Registers a new spacer AND adds it to the toolbar layout in a single step.


$editor->addspacer(string $idnamestring $location);


This function is depreciated, you should use the registerSpacer method if you need to register a new spacer with a unique id name and then use the addRegisteredButton method to add any item to the toolbar layout. 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');

In version 2 compatibility mode this method will add a separator NOT a spacer. WysiwygPro 2.x incorrectly called separators spacers.