Javascript CkEditor-将allowedContent设置为true不会禁用ACF

Javascript CkEditor-将allowedContent设置为true不会禁用ACF,javascript,html,ckeditor,ckeditor.net,Javascript,Html,Ckeditor,Ckeditor.net,我想在ckeditor上禁用ACF,正如许多帖子和文档所建议的,我通过以下方式将allowedcontent设置为true,但它仍然会过滤掉我的html CKEDITOR.config.allowedContent = true; CKEDITOR.editorConfig = function( config ) { config.allowedContent = true; // also tried CKEDITOR.allowedContent = true; and CKEDIT

我想在ckeditor上禁用ACF,正如许多帖子和文档所建议的,我通过以下方式将allowedcontent设置为true,但它仍然会过滤掉我的html

CKEDITOR.config.allowedContent = true;

CKEDITOR.editorConfig = function( config ) {

config.allowedContent = true;

// also tried CKEDITOR.allowedContent = true; and CKEDITOR.config.allowedContent = true;

 };
我试图在我的插件代码中插入我的自定义标记,如下所示

CKEDITOR.plugins.add('MakeCPBold', {
 init: function (editor) {
     editor.addCommand('MakeCPBoldCommand', {           
         exec: function (editor) {              
             editor.insertHtml('<CP:CP_B>Sample Content</CP:CP_B>');                               
         }
     });         
     editor.ui.addButton('MakeCPBold', {
         label: 'Make CP Bold',
         command: 'MakeCPBoldCommand',
         icon: this.path + 'images/makeabbr.gif',
         toolbar: 'Basic'

    });
 }
CKEDITOR.plugins.add('MakeCPBold'{
init:函数(编辑器){
editor.addCommand('MakeCPoldCommand',{
exec:函数(编辑器){
编者:insertHtml(“示例内容”);
}
});         
editor.ui.addButton('MakeCPBold'{
标签:“使CP加粗”,
命令:“MakeCPBoldCommand”,
图标:this.path+'images/makeabbr.gif',
工具栏:“基本”
});
}
}))

insertHtml只需插入“示例内容”并过滤自定义标记CP:CP_B。用任何已知标记(如strong)替换标记CP:CP_B就可以了

我是否正确配置了它

我使用的是最新版本的ckeditor 4.4.1。还尝试了版本4.4.0和4.2


谢谢,CKEditor是HTML文本编辑器,而不是XML编辑器。不要期望它支持所有XML特性,比如名称空间。使用
datafoo
属性来区分自定义内容和标准数据。

在引入ACF之前,允许在版本中使用。它还允许使用FCKeditor。我能够更早地注入自定义标记。仅带ACF的版本是不允许的。