registerAndEnableFeature

Availability: >= 3.0

Type: Object Method

Description: Registers a new feature and enables it in a single step. If you use the registerFeature function the new feature is disabled until it is enabled using enableFeature.

Syntax:

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

See also:

disableFeature, disableFeatures, enableFeature, enableFeatures, featureIsEnabled, registerFeature