Home > CMS Tutorial > Empire CMS > body text

The empire cms editor automatically generates p tags. How to remove them?

下次还敢
Release: 2024-04-17 00:24:13
Original
533 people have browsed it

如何移除帝国 CMS 编辑器自动生成的 p 标签

问题:如何移除帝国 CMS 编辑器自动生成的 p 标签?

回答:

帝国 CMS 编辑器有一个名为 "AutoP" 的功能,会自动在内容文本周围添加

标签。如果您希望移除这些标签,请按照以下步骤操作:

1. 禁用 AutoP 功能

  • 登录到您的帝国 CMS 管理面板。
  • 导航至 "基本设置" > "系统设定" > "发布" 选项卡。
  • 找到 "生成内容时自动加

    " 选项,并将其设置为 "否"。

2. 修改模板

  • 打开您要编辑的模板文件(通常位于 /data/template/default/ 文件夹中)。
  • 搜索以下代码行:

$content

Copy after login
  • 将其替换为:
$content
Copy after login

3. 清除缓存

  • 编辑完模板后,请清除您的浏览器缓存。

完成以上步骤后,帝国 CMS 编辑器将不再自动在内容文本周围添加

标签。

The above is the detailed content of The empire cms editor automatically generates p tags. How to remove them?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!