Php ckeditor-can';t禁用高级内容筛选器
CKEditor很不错,但它去掉了所有html标记和css。这是因为他们新的高级内容过滤器。它破坏了我所有的网页布局 我尝试在Php ckeditor-can';t禁用高级内容筛选器,php,javascript,mysql,ckeditor,Php,Javascript,Mysql,Ckeditor,CKEditor很不错,但它去掉了所有html标记和css。这是因为他们新的高级内容过滤器。它破坏了我所有的网页布局 我尝试在config.js中禁用它,但没有任何区别,我整天都在处理这个问题,并尝试了以下代码的许多变体。有人能在config.js CKEDITOR.editorConfig = function( config ) { config.allowedContent = true; // The toolbar groups arrangement, opti
config.js
中禁用它,但没有任何区别,我整天都在处理这个问题,并尝试了以下代码的许多变体。有人能在config.js
CKEDITOR.editorConfig = function( config ) {
config.allowedContent = true;
// The toolbar groups arrangement, optimized for a single toolbar row.
config.toolbarGroups = [
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'styles' },
{ name: 'colors' },
];
// The default plugins included in the basic setup define some buttons that
// we don't want too have in a basic editor. We remove them here.
config.removeButtons = 'Cut,Copy,Paste,Undo,Redo,Anchor,Underline,Strike,About,Others,Forms';
// Let's have it basic on dialogs as well.
config.removeDialogTabs = 'link:advanced';
};
我意识到问题不在于编辑。我在PHP中通过
htmlentities()
和striptags()
传递数据,这将删除所有标记。我现在只有mysql\u escape\u string()
检查数据。是否还有其他功能可以用来清理数据而不破坏布局