的页面设置多个tinymce编辑器

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编辑

TinyMCE附件下载:http://pan.baidu.com/s/1qWEykX2

谢谢关注websites博客!

版权声明:本文博主原创文章,博客,未经同意不得转载。

相关文章:

  • 2021-09-08
  • 2021-12-14
  • 2021-12-09
  • 2021-08-05
  • 2022-01-29
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
  • 2022-01-09
相关资源
相似解决方案