user276351
user276351

Reputation:

How set value for TinyMCE?

How can one set the value for TinyMCE or reset its current value?

The form name is form and element which associated with TinyMCE is editor.

Upvotes: 1

Views: 4805

Answers (2)

RahulOnRails
RahulOnRails

Reputation: 6542

Specifically for any textarea, just specify id of textarea.

For example, id of textarea is country then

tinyMCE.get('country').setContent('AnyCountryName');

Upvotes: 0

Alexx
Alexx

Reputation: 76

tinyMCE.activeEditor.setContent(....)

Upvotes: 6

Related Questions