ckeditor错误:TypeError:a.ui.space(...)为null [英] ckeditor error : TypeError: a.ui.space(...) is null

查看:92
本文介绍了ckeditor错误:TypeError:a.ui.space(...)为null的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..



在我的mvc申请表中,我有2个标签(添加标签的部分视图),两个都包含ckeditor。

我在局部视图中添加了ckeditor。

第一个标签的ckeditor没有加载并给出错误:TypeError:a.ui.space(...)为null



i我在部分视图中调用ckeditor的替换函数



Hi..

In my mvc application form i have 2 tabs(added partial view for the tabs) and both contain ckeditor.
I have added ckeditor in partial view.
the ckeditor of 1st tab does not load and gives error : TypeError: a.ui.space(...) is null

i am calling replace function for ckeditor in partial view

$(document).ready(function () {
       if (CKEDITOR.instances && CKEDITOR.instances['Description']) {
           var instance = CKEDITOR.instances['Description'];
           if (instance) {
               CKEDITOR.remove(instance);
           }
       }
       CKEDITOR.replace('Description', {
           contentsLangDirection: 'ltr'
       });

   });





可能是什么问题..Pls help



what can be the issue ..Pls help

推荐答案

(document).ready(function(){
if (CKEDITOR.instances&& CKEDITOR.instances [' 描述']){
var instance = CKEDITOR.instances [' Description'];
if (instance){
CKEDITOR。 remove (instance);
}
}
CKEDITOR.replace(' Description',{
contentsLangDirection:' ltr'
});

});
(document).ready(function () { if (CKEDITOR.instances && CKEDITOR.instances['Description']) { var instance = CKEDITOR.instances['Description']; if (instance) { CKEDITOR.remove(instance); } } CKEDITOR.replace('Description', { contentsLangDirection: 'ltr' }); });





可能是什么问题..Pls help



what can be the issue ..Pls help


这篇关于ckeditor错误:TypeError:a.ui.space(...)为null的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆