SCEditor

getWysiwygEditorValue()

getWysiwygEditorValue() Since: 1.3.0

Gets the WYSIWYG editors current HTML value.

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.

Syntax

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

Parameters

filter
Type: Boolean
Default: true

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

Return

Type: String