的页面设置多个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附件下载:http://pan.baidu.com/s/1qWEykX2
谢谢关注websites博客!
版权声明:本文博主原创文章,博客,未经同意不得转载。