Javascript tinyMCE不添加特定文本区域的控件

Javascript tinyMCE不添加特定文本区域的控件,javascript,jquery,python,django,tinymce,Javascript,Jquery,Python,Django,Tinymce,我正在尝试添加一个textarea并使用动态激活它 tinyMCE.execCommand('mceAddControl', false,'id') 我曾在其他文本区域尝试过,效果很好,但不适用于此特定文本区域: 'id_sguidepoint_set-'+index+'-gp_description' 是不是名字太大了?或者因为某些字符在tinyMCE中无效 以下是我的tinyMCE初始配置: tinyMCE.init({ mode : "textareas",

我正在尝试添加一个textarea并使用动态激活它

tinyMCE.execCommand('mceAddControl', false,'id')
我曾在其他文本区域尝试过,效果很好,但不适用于此特定文本区域:

'id_sguidepoint_set-'+index+'-gp_description'
是不是名字太大了?或者因为某些字符在tinyMCE中无效

以下是我的tinyMCE初始配置:

tinyMCE.init({
            mode : "textareas",
            theme : "advanced",
            plugins : "emotions,spellchecker,advhr,insertdatetime,preview,jbimages", 

            // Theme options - button# indicated the row# only
            theme_advanced_buttons1 : "newdocument,|,bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,formatselect",
            theme_advanced_buttons2 : "cut,copy,paste,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor,jbimages,|,code,preview,|,forecolor,backcolor",
            theme_advanced_buttons3 : "insertdate,inserttime,|,spellchecker,advhr,,removeformat,|,sub,sup,|,charmap,emotions",      
            theme_advanced_toolbar_location : "top",
            theme_advanced_toolbar_align : "left",
            theme_advanced_resizing : false ,
            relative_urls : false
    });
这就是我想激活的元素:

<textarea id="id_sguidepoint_set-3-gp_description" rows="10" cols="40" name="sguidepoint_set-3-gp_description" style="display: none; " aria-hidden="true"></textarea>

显然有不止一个textarea,这就是为什么我必须使用索引来迭代它们

任何帮助都将不胜感激


提前感谢

好的,在尝试了很多不同的东西之后,我发现我的问题是文本区域被隐藏了:

style= "display: none"
这就是问题所在,因为可以绘制文本区域,所以一切都正常

我希望它能帮助其他有同样问题的人

问候