width() Since: 1.3.5
Gets the current width of the editor in px.
Syntax
var val = instance.width();
Return
Type: Int
The width in pixels
Gets the current width of the editor in px.
var val = instance.width();
Type: Int
The width in pixels
Sets the width of the editor.
instance.width(value);
Type: sceditor
Set the width to 200px:
var textarea = ...;
sceditor.instance(textarea).width(200);
var textarea = ...;
sceditor.instance(textarea).width('100%');