Skip to content

Instantly share code, notes, and snippets.

@cagartner
Created August 14, 2013 17:29
Show Gist options
  • Select an option

  • Save cagartner/6233337 to your computer and use it in GitHub Desktop.

Select an option

Save cagartner/6233337 to your computer and use it in GitHub Desktop.
// Get the HTML contents of the currently active editor
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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment