SCEditor

setSourceEditorValue()

setSourceEditorValue(val) Since: 1.3.0

Sets the current value of the source editor.

Info: Using the val() method is the prefered way of setting the editors value. It will check if the editor is in WYSIWYG or source mode and set the appropriate value.

Syntax

instance.setSourceEditorValue(val);

Parameters

val
Type: String

The value to set. Should be HTML or BBCode if using the BBCode plugin.