callFormatting

Availability: >= 3.0

Type: Object Method

Description: Applies a formatting command to the current selection or insertion point.

Syntax:

editor.callFormattingstring command [, mixed value] );

Parameters:

command
A formatting command identifier

value
An optional value for the command

Example:

The following calls the bold command:

WPro.editors['editorName'].callFormatting('bold');