SCEditor

height()

height() Since: 1.3.5

Gets the current height of the editor in px.

Syntax

var val = instance.height();

Return

Type: Int

The height in pixels

height(value) Since: 1.3.5

Sets the height of the editor.

Syntax

instance.height(value);

Parameters

value
Type: Int or String

Should either be the height in pixels or a string percentage.

Return

Type: sceditor

Example

Set the height to 200px:

var textarea = ...;
sceditor.instance(textarea).height(200);