TinyMCE:API/tinymce.Editor/getContent
From Moxiecode Documentation Wiki
Contents |
[edit]
Method: getContent
[edit]
Summary
Gets the content from the editor instance, this will cleanup the content before it gets returned using the different cleanup rules options.
[edit]
Syntax
<String> getContent(<Object> o)
[edit]
Parameters
- o
- Optional content object, this gets passed around through the whole get process.
[edit]
Returns
Cleaned content string, normally HTML contents.
[edit]
Examples
// Get the HTML contents of the currently active editor
console.debug(tinyMCE.activeEditor.getContent());
// Get the raw contents of the currently active editor
tinyMCE.activeEditor.getContent({format : 'raw'});
// Get content of a specific editor:
tinyMCE.get('content id').getContent()
