getContent

public function getContent(s:Object):String
Returns the selected contents using the DOM serializer passed in to this class.

Examples

// Alerts the currently selected contents
alert(tinyMCE.activeEditor.selection.getContent());

// Alerts the currently selected contents as plain text
alert(tinyMCE.activeEditor.selection.getContent({format : 'text'}));

Params

Name Type Description
s Object Optional settings class with for example output format text or html.

Returns

String Selected contents in for example HTML format.