registerFeature

Availability: >= 3.0

Type: Object Method

Description: Registers a new feature.

Syntax:

$editor->registerFeaturestring $idname [, array $buttons [, mixed $onenable [, mixed $ondisable]]] );

Parameters:

$idname
A unique ID to identify your new feature.

$buttons
An array of button identifiers for buttons related to this feature. 

$onenable
The name of a function to be called when this feature is enabled.

$ondisable
The name of a function to be called when this feature is disabled

Once a feature is registered it is disabled until you enable it using enableFeature

See also:

disableFeature, disableFeaturesenableFeature, enableFeatures, featureIsEnabled, registerAndEnableFeature