CKEditor allowerContent = true 根本不适合我
CKEditor allowerContent = true simply not working for me
我正在使用 CKEditor 4.5,我想在保存时禁用 html 格式。我只需要保存 html。要在 CKEditor 中执行此操作,需要将其设置为 true。
CKEDITOR.config.allowedContent = true;
我在 CK 编辑器 config.js 文件中做了这个,如下所示。
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.allowedContent = true;
};
这对我不起作用。我试过了 CKEditor 4.2.2 - allowedContent = true is not working 但还是不行。
谁能给我一个确切的例子或任何其他方法来解决这个问题。我只是不想让这个编辑更正我的HTML,我想保存它。
发现问题。它只是没有刷新浏览器缓存。
您始终需要刷新缓存并清除历史记录才能使更改生效。
我正在使用 CKEditor 4.5,我想在保存时禁用 html 格式。我只需要保存 html。要在 CKEditor 中执行此操作,需要将其设置为 true。
CKEDITOR.config.allowedContent = true;
我在 CK 编辑器 config.js 文件中做了这个,如下所示。
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
// config.language = 'fr';
// config.uiColor = '#AADC6E';
config.allowedContent = true;
};
这对我不起作用。我试过了 CKEditor 4.2.2 - allowedContent = true is not working 但还是不行。
谁能给我一个确切的例子或任何其他方法来解决这个问题。我只是不想让这个编辑更正我的HTML,我想保存它。
发现问题。它只是没有刷新浏览器缓存。
您始终需要刷新缓存并清除历史记录才能使更改生效。