tinymce文本编辑器不';t在facebox模式窗口中加载

tinymce文本编辑器不';t在facebox模式窗口中加载,tinymce,text-editor,lightbox,facebox,Tinymce,Text Editor,Lightbox,Facebox,我正在尝试将tinymce编辑器与facebox模式窗口一起使用。但是当模态窗口打开时,tinymce不会加载,而且我在firebug中没有得到Jscript错误 <script type="text/javascript"> jQuery(document).ready(function($) { $('a[rel*=facebox]').facebox(); }) tinyMCE.init({ theme : "advanced", mod

我正在尝试将tinymce编辑器与facebox模式窗口一起使用。但是当模态窗口打开时,tinymce不会加载,而且我在firebug中没有得到Jscript错误

<script type="text/javascript">

 jQuery(document).ready(function($) {
     $('a[rel*=facebox]').facebox();
 })

 tinyMCE.init({ 
    theme : "advanced", 
    mode : "textareas", 
    plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist", 
    // Theme options
        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_resizing : true

});
</script>

jQuery(文档).ready(函数($){
$('a[rel*=facebox]')。facebox();
})
tinyMCE.init({
主题:“高级”,
模式:“文本区域”,
插件:“分页符、样式、图层、表格、保存、advhr、advimage、advlink、情感、iespell、inlinepopups、insertdatetime、预览、媒体、搜索替换、打印、上下文菜单、粘贴、方向性、全屏、不可编辑、可视光标、不可中断、xhtmlxtras、模板、advlist”,
//主题选项
主题_高级_按钮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大小调整:正确
});

有什么帮助吗?

现在我正在做另一个项目,我又遇到了同样的问题

这次我使用了colorbox,并将此代码放在fancybox的完成事件上

 $(".edit").colorbox({
    onComplete : function(){ tinyMCE.execCommand('mceAddControl', true, "textare_id"); },
    onClosed   : function(){ tinyMCE.execCommand('mceRemoveControl', true, "textare_id");}  
 });
多亏了古奇的回答,这一切都成功了


p.S.Tinymce init函数在整个项目的索引文件中定义

更多信息会更好。您是否收到任何javascript错误(使用firebug)?如果使用“插件”:。配置中的错误可能导致tinymce关闭。请将您的完整tinymce.init发布。