Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/234.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 从CKEditor中删除页脚标记_Php_Html_Ckeditor - Fatal编程技术网

Php 从CKEditor中删除页脚标记

Php 从CKEditor中删除页脚标记,php,html,ckeditor,Php,Html,Ckeditor,我正在我的网站中使用CKEditor,我想在这里删除页脚标记。我怎么做?我正在使用CKEditor添加一些有用的内容。它工作正常,但我不想显示页脚标记。它显示p和div标签。如何从CKEditor中删除页脚p和div标记?这取决于页脚显示的内容。 建议: 在config.js文件中添加以下代码: config.removePlugins = 'elementspath'; config.resize_enabled = false; 这是问题的一部分 但是,如果您想禁用来自CKEditor插件

我正在我的网站中使用
CKEditor
,我想在这里删除页脚标记。我怎么做?我正在使用
CKEditor
添加一些有用的内容。它工作正常,但我不想显示页脚标记。它显示
p
div
标签。如何从
CKEditor
中删除页脚
p
div
标记?

这取决于页脚显示的内容。
建议:

在config.js文件中添加以下代码:

config.removePlugins = 'elementspath';
config.resize_enabled = false;
这是问题的一部分

但是,如果您想禁用来自CKEditor插件且仍在生成中的某些功能,可以使用
removePlugins
设置来防止加载插件

// Remove one plugin.
config.removePlugins = 'elementspath';

// Remove multiple plugins.
config.removePlugins = 'elementspath,save,font';

您需要在config.js文件中添加以下行:


config.removePlugins='elementspath'

它做什么?也。。你注意到了吗,在接受的答案中也提到了这一点?它从编辑的页脚中删除了body,p标签文本。你应该将其添加到你的答案中。