addStylesheet

Availability: >= 3.0

Type: Object Method

Description: Allows you to set the default appearance of content in the editor using an external stylesheet.

Syntax:

$editor->addStylesheet (string $url );

Parameters:
The single parameter should be the URL of the stylesheet to add.

This function is useful if you are editing a snippet of HTML body code. If you are editing an entire HTML document that specifies a stylesheet in its header then there is no need to use this function.

If you have set the baseURL you will need to take this into account when specifying the URL of your stylesheet.

You can call this function multiple times to add more stylesheets. Stylesheets will be loaded in the order that the function is called.