禁用primefaces扩展编辑器

禁用primefaces扩展编辑器,primefaces,ckeditor,Primefaces,Ckeditor,我将Primefaces扩展3.0.0与Primefaces 5.2一起使用,没有问题 但我现在尝试升级到Primefaces扩展3.2.0,但我发现ckeditor有问题 我不想使用embed Primefaces扩展编辑器,而是使用我的webapp/resources目录中的自定义编辑器。使用3.0.0,一切正常。 但是在3.2.0版本中,所需资源(如插件)的所有GET都被primefaces扩展拦截,我的自定义ckeditor无法启动。 我不想安装primefaces扩展编辑器。用我自己的

我将Primefaces扩展3.0.0与Primefaces 5.2一起使用,没有问题

但我现在尝试升级到Primefaces扩展3.2.0,但我发现ckeditor有问题

我不想使用embed Primefaces扩展编辑器,而是使用我的
webapp/resources
目录中的自定义编辑器。使用3.0.0,一切正常。 但是在3.2.0版本中,所需资源(如插件)的所有GET都被primefaces扩展拦截,我的自定义ckeditor无法启动。 我不想安装primefaces扩展编辑器。用我自己的

我有以下错误:

得到 404(可插入)未捕获类型错误:无法设置的属性“dir” 未定义

好处应该是: 得到

如何在primefaces扩展或ckeditor中禁用此错误资源

<p:panel rendered="#{inputItem.type == 'typeeditor'}" width="75%">  
     <script type="text/javascript" >
            var CKEDITOR_BASEPATH  = '../../resources/ckeditor/';
     </script>
     <script src="../../resources/ckeditor/ckeditor.js" type="text/javascript"/>
     <script type="text/javascript" >
            CKEDITOR.plugins.basePath = '../../resources/ckeditor/plugins/';
     </script>

     <textarea cols="90" rows="20"  id="editor0" name="0editor">
        #{inputItem.inputItemEditor.value}
     </textarea>

     <script type="text/javascript" >
    CKEDITOR.replace( 'editor0',
    {
        uiColor: '#85B5D9',
        width: '100%',
        height: '300px',
        readOnly : #{!associateBean.editMode},
        chaineditCKEditorURL : "../../resources/ckeditor",
        mathJaxLib : 'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML',
        <ui:repeat value="#{inputItem.inputItemEditor.parameters}" 
            var="eAttribute" varStatus="statusAttribute">
            #{eAttribute.value} : #{eAttribute.label},
        </ui:repeat>
        allowedContent : true
    });
    </script>
</p:panel>

var CKEDITOR_BASEPATH='../../resources/CKEDITOR/';
CKEDITOR.plugins.basePath='../../resources/CKEDITOR/plugins/';
#{inputItem.inputItemEditor.value}
CKEDITOR.replace('editor0',
{
uiColor:“#85B5D9”,
宽度:“100%”,
高度:“300px”,
只读:{!associateBean.editMode},
ChaineEditCkeditorUrl:“../../resources/ckeditor”,
mathJaxLib:'http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML',
#{eAttribute.value}:#{eAttribute.label},
允许内容:正确
});

我是通过以下方式完成的:

CKEDITOR_GETURL = function (r) {
   return r.startsWith('http:') ? r : "http//cdn.ckeditor.com/4.5.6/full-all/" + r;
};

我的解决方案是,在调用ckeditor.js禁用pe get url之前,最终写下这篇文章:函数ckeditor_GETURL(resource){}谢谢,@Romuald,你救了我的命!!!!