Formatting Commands

Formatting Commands are a string representing a function that will apply some formatting to the current selection. Formating commands are used with the callFormatting JavaScript API method to format the current selection.

You can register a new formatting handler from the PHP API using the addJSFormattingHandler method or from the JavaScript API using the addFormattingHandler method.

Registering a new formatting handler for an existing command will cause that command to be handled by your new formatting handler. This provides a method for altering the functionality of WysiwygPro.

Here are the built-in commands for various browsers, not all commands are supported or behave the same in each browser: