Availability: >= 3.0

Type: Object Method

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


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

This function is depreciated, you should use the registerSeparator method if you need to register a new separator 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 separator, you can add a separator to the toolbar layout like this: $editor->addRegisteredButton('separator','after:bold');

This function exists for consistency with the addSpacer method.