admin管理员组文章数量:1315376
In a perfect world (with out TinyMCE) the following code works great:document.myform.textarea.value += '[MY_BB_CODE]';
With TinyMCE enabled on this page, I can't use the standard javascript. I googled around and haven't found any JAVASCRIPT-ONLY solutions that didn't require some TinyMCE plugin... I'm sure I'm not looking in the right places, but has anyone here ever e across this issue?
In a perfect world (with out TinyMCE) the following code works great:document.myform.textarea.value += '[MY_BB_CODE]';
With TinyMCE enabled on this page, I can't use the standard javascript. I googled around and haven't found any JAVASCRIPT-ONLY solutions that didn't require some TinyMCE plugin... I'm sure I'm not looking in the right places, but has anyone here ever e across this issue?
Share Improve this question asked Nov 12, 2010 at 20:01 Weston WatsonWeston Watson 5,7446 gold badges25 silver badges25 bronze badges2 Answers
Reset to default 6You can also do
tinyMCE.get('tinymce_id').setContent(my_new_content);
tinyMCE.execCommand('mceReplaceContent',false,TextToAdd);
本文标签: Javascript and TinyMCE (can39t change value or textarea with TinyMCE)Stack Overflow
版权声明:本文标题:Javascript and TinyMCE (can't change .value or textarea with TinyMCE) - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741974495a2408040.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论