Javascript CKEditor allowerContent=true不适合我

Javascript CKEditor allowerContent=true不适合我,javascript,html,ckeditor4.x,Javascript,Html,Ckeditor4.x,我使用的是CKEditor 4.5,我想在保存时禁用html格式。我只需要保存html。要在CKEditor中执行此操作,需要设置为true CKEDITOR.config.allowedContent = true; 我在CK editor config.js文件中这样做,如下所示 CKEDITOR.editorConfig = function( config ) { // Define changes to default configuration here. For exam

我使用的是CKEditor 4.5,我想在保存时禁用html格式。我只需要保存html。要在CKEditor中执行此操作,需要设置为true

CKEDITOR.config.allowedContent = true;
我在CK editor config.js文件中这样做,如下所示

CKEDITOR.editorConfig = function( config ) {
    // Define changes to default configuration here. For example:
    // config.language = 'fr';
    // config.uiColor = '#AADC6E';
    config.allowedContent = true;
};
这对我不起作用。我试过了,但还是不行


有人能给我一个确切的例子或任何其他方法来解决这个问题。我只是不想让这个编辑器更正我的HTML,我想保存它。

发现了这个问题。只是没有刷新浏览器缓存


您始终需要刷新缓存并清除历史记录,以使更改生效

你可以分享更多的html和js代码吗?