开发者

How set value for TinyMCE?

开发者 https://www.devze.com 2022-12-24 14:08 出处:网络
How can one set the value for TinyMCE or reset its current value? The form name is fo开发者_如何学编程rm and element which associated with TinyMCE is editor.tinyMCE.activeEditor.setContent(....)Spec

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

The form name is fo开发者_如何学编程rm and element which associated with TinyMCE is editor.


tinyMCE.activeEditor.setContent(....)


Specifically for any textarea, just specify id of textarea.

For example, id of textarea is country then

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

精彩评论

暂无评论...
验证码 换一张
取 消