Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/368.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript CKEditor";“拒绝许可”;IE8内部错误_Javascript_Jquery_Html_Internet Explorer 8_Ckeditor - Fatal编程技术网

Javascript CKEditor";“拒绝许可”;IE8内部错误

Javascript CKEditor";“拒绝许可”;IE8内部错误,javascript,jquery,html,internet-explorer-8,ckeditor,Javascript,Jquery,Html,Internet Explorer 8,Ckeditor,我在我的应用程序中使用的是v4.5.6(以及Angular 1.2.0和jQuery 1.11.3),它必须与IE8兼容。 其他浏览器没有抛出任何错误,但当我在IE8中加载带有编辑器的页面时,它在ckeditor.js文件的第54行抛出“权限被拒绝”错误: getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument|| this.$.parentNode.ownerDocument)} 此外,我无法在

我在我的应用程序中使用的是v4.5.6(以及Angular 1.2.0和jQuery 1.11.3),它必须与IE8兼容。 其他浏览器没有抛出任何错误,但当我在IE8中加载带有编辑器的页面时,它在ckeditor.js文件的第54行抛出“权限被拒绝”错误:

getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||
this.$.parentNode.ownerDocument)}
此外,我无法在IE8内部打开,我得到错误:

ckEditor指令中使用的代码相当简单-两个配置设置器,替换工具栏的方法,然后在模型更新时替换getData()和setData(),类似于:

CKEDITOR.config.resize_enabled = false;
var ck = CKEDITOR.replace(elm[0],
    {
        toolbar: [
            {name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', '-', 'Undo', 'Redo']}
        ]
    });

ck.on('instanceReady', function () {
    if(ngModel.$viewValue){
        ck.setData(ngModel.$viewValue);
    }
});

function updateModel() {
    scope.$apply(function () {
        ngModel.$setViewValue(ck.getData());
    });
}

ck.on('change', updateModel);
内部html文件:

 <script src="//cdn.ckeditor.com/4.5.6/standard-all/ckeditor.js"></script>

 <textarea class="textarea form-control" ng-if="!loading"
    data-ck-editor="" ng-model="test.editorContent"> </textarea>


虽然已加载编辑器并正确显示数据,但此错误仍在继续。有什么帮助吗

我可能会首先使用最新版本的CKEditor,因为这个版本有点旧。@DavidG,4.5.6版不是这样old@Dekel这就是为什么我说它有点旧,或者你没有读我的评论?@NikolaB,你能举个例子吗?听起来像是CORS的问题。CKEditor的第4版与IE8不完全兼容,但它应该可以工作。@Dekel也让我们面对它,8个月前的任何东西都肯定是旧的。