Javascript CKEditor';h为空';重新打开灯箱时出错
我正在使用CKEditor作为内容管理系统。当有人编辑页面上的文本时,将使用CKEditor打开一个灯箱。当我关闭lightbox时,我的代码将销毁CKEditor实例。当您再次打开它时,我在ckeditor.js的第13行看到一个Javascript错误,上面写着“h为null” 这是我的密码:Javascript CKEditor';h为空';重新打开灯箱时出错,javascript,ckeditor,Javascript,Ckeditor,我正在使用CKEditor作为内容管理系统。当有人编辑页面上的文本时,将使用CKEditor打开一个灯箱。当我关闭lightbox时,我的代码将销毁CKEditor实例。当您再次打开它时,我在ckeditor.js的第13行看到一个Javascript错误,上面写着“h为null” 这是我的密码: $('#editSidebarModuleLightbox').html(data); if ( $('#moduleText').length ) {
$('#editSidebarModuleLightbox').html(data);
if ( $('#moduleText').length ) {
CKEDITOR.replace('moduleText');
}
$('#editSidebarModuleLightbox').lightbox_me({
closeEsc: false,
closeClick: false,
destroyOnClose: true,
closeSelector: "button#cancelModuleEdit",
onLoad: function() {
$('button#saveModuleEdit').click(function() {
// Do stuff to save it
$('button#cancelModuleEdit').trigger('click');
});
},
onClose: function() {
if (CKEDITOR.instances['moduleText']) {
CKEDITOR.remove(CKEDITOR.instances['moduleText']);
}
}
});
如何消除此错误?将ckeditor更新到较新版本时,始终清除浏览器缓存!
它对我有用…在我的例子中,我得到了在
ckeditor
如果我删除style=“display:none;”所有内容都正常工作。。。但是我不能把这个问题复制到一个简单的例子。。。
当在不可见的div容器中加载ckeditor时,错误只会出现在我的cms中
也许这可以帮助一些人