setCSS(css)

Class: DocumentEditor.

Description:

Sets new CSS styles to be applied to the HTML document without adding this CSS to the HTML content. It replaces previously added CSS. This method can be used to remove previously added CSS by calling setCSS(""). This method should be used only when DocumentEditor's HTML content type is enabled using html(true) method.

Parameters:

Name Type Description

css

string

CSS content (without style tags).

Returns:

Type: DocumentEditor