SpoksST
SpoksST

Reputation: 13

Problems with tinyMCE and js

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

Answers (1)

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

Related Questions