This example shows how to setup multiple editors on the same page and with different configs.
用于多功能文本框,之前同页面只能用一个tinymce编辑器,百度谷歌没结果,所以整理下代码,以供参考:
<script type="text/javascript" src="./tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ mode : "textareas", theme : "simple", editor_selector : "mceSimple" }); tinyMCE.init({ mode : "textareas", theme : "advanced", editor_selector : "mceAdvanced" }); </script> <form method="post" action="websites_somepage"> <textarea name="content1" class="mceSimple" style="width:100%"> </textarea> <textarea name="content2" class="mceAdvanced" style="width:100%"> </textarea> </form>
效果图:
TinyMCE附件下载:http://pan.baidu.com/s/1qWEykX2
谢谢关注websites博客!
如何在相同的页面设置多个tinymce编辑器,布布扣,bubuko.com
原文地址:http://blog.csdn.net/websites/article/details/37905575