Javascript TinyMCE按需加载特定文本区域

Javascript TinyMCE按需加载特定文本区域,javascript,jquery,html,tinymce,rich-text-editor,Javascript,Jquery,Html,Tinymce,Rich Text Editor,我需要在一个特定的textarea上加载一个TinyMCE,正如我所做的那样,它将TinyMCE添加到文档中的所有textarea <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script type="text/javascript" src="tinymce/tinymce.min.js"></script> <script type="text/javascrip

我需要在一个特定的
textarea
上加载一个
TinyMCE
,正如我所做的那样,它将
TinyMCE
添加到文档中的所有
textarea

<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script type="text/javascript" src="tinymce/tinymce.min.js"></script>
<script type="text/javascript">
function setup() {
   tinyMCE.init({
      mode : "textareas",
      theme : "modern",
      plugins : "pagebreak,layer,table,save,hr,image,link,emoticons,spellchecker,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,template",
      theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
      theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
      theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
      theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
      theme_advanced_toolbar_location : "top",
      theme_advanced_toolbar_align : "left",
      theme_advanced_statusbar_location : "bottom",
      theme_advanced_resizing : true
   });
}
</script>

<form method="post" action="somepage">
        <textarea name="content" style="width:100%">
        </textarea>
     <textarea name="another_content" style="width:100%">
        </textarea>
        <a href="javascript:setup();">Load TinyMCE</a>
</form>

函数设置(){
tinyMCE.init({
模式:“文本区域”,
主题:“现代”,
插件:“分页符、图层、表格、保存、hr、图像、链接、表情、拼写检查、插入日期时间、预览、媒体、搜索替换、打印、上下文菜单、粘贴、方向性、全屏、不可编辑、可视图片、不可中断、模板”,
主题_高级_按钮1:“保存、新建文档、|、粗体、斜体、下划线、删除线、|、左对齐、居中对齐、右对齐、满对齐、|、样式选择、格式选择、字体选择、字体大小选择”,
主题高级按钮2:“剪切、复制、粘贴、粘贴文本、粘贴文字、搜索、替换、布利斯特、numlist、outdent、indent、blockquote、|、撤消、重做、链接、取消链接、锚定、图像、清理、帮助、代码、插入日期、插入时间、预览、前景色、后景色”,
主题|高级|按钮3:“表格控件,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,情感,易趣,媒体,advhr,|,打印,|,ltr,rtl,|,全屏”,
theme_advanced_按钮4:“插入层、向前移动、向后移动、绝对、|、styleprops、|、引用、缩写、首字母缩写、del、ins、attribs、|、可视光标、非中断、模板、分页符”,
主题\高级\工具栏\位置:“顶部”,
主题\高级\工具栏\对齐:“左”,
主题\高级\状态栏\位置:“底部”,
主题\u高级\u大小调整:正确
});
}
请参阅。如果可能的话,最容易使用带有特定选择器的jQuery版本