getSourceEditorValue() Since: 1.3.0

Gets the current value of the source editor.

If using a format that like the BBCode format, this will return the result of the running the value through the format.

If the filter parameter is set to false, this will return the unfiltered contents of the source editor (BBCode if using the BBCode format).

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


var val = instance.getSourceEditorValue([filter]);


Type: Boolean
Default: true

If to filter the value through the current format. Will cause BBCode to be converted to HTML if using the BBCode format.


Type: String