addJSFormattingHandler

Availability: >= 3.0

Type: Object Method

Description: Registers a new formatting command from the PHP API.

Syntax:

$editor->addJSFormattingHandlerstring $handleridstring $function );

Registers a new formatting command that can be used from the JavaScript API with the callFormatting method.