Created
August 14, 2013 17:29
-
-
Save cagartner/6233337 to your computer and use it in GitHub Desktop.
Pegar dados do editor TinyMCE com javascript From http://stackoverflow.com/questions/6541782/getting-the-value-from-a-tinymce-textarea
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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