Reputation: 13
I`m trying to get tinyMCE editor content, however
tinyMCE.get('ExVal')
always returns nothing.
<textarea id="ExVal" name="ExVal" rows="15" cols="80" style="width: 400px; height:380px;"
runat="server"><%= Model.Text %></textarea>
Upvotes: 0
Views: 252
Reputation: 6763
From the official documentation:
// 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();
Upvotes: 1