SCEditor

css()

css() Since: 1.4.3

Gets the current inline CSS of the WYSIWYG editor.

Syntax

var css = instance.css();

Return

Type: string

css(value) Since: 1.4.3

Sets the current inline CSS of the WYSIWYG editor.

Important: Changing the editor CSS can cause browser incompatibility issues.

Syntax

instance.css(value);

Parameters

css
Type: string

The CSS to add.

Return

Type: sceditor

Example

Change the default font colour:

var textarea = ...;
sceditor.instance(textarea).css('body { color: #ff0; }');