Hongmu Notes
Home Program Notes The empire cms editor line break is changed to p tag
Program Notes Empire cms

The empire cms editor line break is changed to p tag

The empire cms editor line break is changed to p tag

In the Imperial CMS background editor, after hitting Enter, the br tag will appear. This can be seen when viewing the "source code" (upper left corner). The br tag is a forced line break, not as good as a paragraph tag.

Although the effects of the two are similar, both start on a new line, paragraph tags can make the structure of the page content clearer when viewing the source code.

The first step is to find the following three files


  \e\admin\ecmseditor\infoeditor\config.js

  \e\admin\ecmseditor\tempeditor\config.js

  \e\data\ecmseditor\infoeditor\config.js

The second step is to find the key code


  config.enterMode = CKEDITOR.ENTER_BR;

  config.shiftEnterMode = CKEDITOR.ENTER_P;

Replace with:


  config.enterMode=CKEDITOR.ENTER_P;

  config.shiftEnterMode=CKEDITOR.ENTER_P;

Replace everything with p tags. Anyway, the br tag is not good and is not good for optimization, so I generally don’t use the br tag.

微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

Empire CMS database statement & SQL statement format

Empire CMS database statement & SQL statement format Program Notes Empire cms

Introduction to Imperial CMS extended SQL program writing, basic examples of Imperial CMS database statements & SQL statement formats: Note: The following examples are based on placing PHP files in the system root directory. Example 1: Connect to MYSQL program. (a.php)<?php require('e/class/connect.php'); //Introduce database configuration files and public function files requ…
👁 351
Empire CMS obtains the system COOKIE variable function getcvar()

Empire CMS obtains the system COOKIE variable function getcvar() Program Notes Empire cms

Get the system COOKIE variable function syntax: getcvar($var,$ecms) Description: $var: is the variable name $ecms: 0 is to set the foreground COOKIE variable, 1 is to set the background COOKIE variable. This parameter can be omitted and defaults to 0. Usage example: getcvar('mlusername'), get the user name of the front-end login member getcvar('loginu...
👁 296
Empire CMS smart label call field collection

Empire CMS smart label call field collection Program Notes Empire cms

Collect and classify all fields that support smart tag calls into Empire CMS smart tags: [e:loop={column ID/topic ID, number of items displayed, operation type, only display pictures with titles, additional SQL conditions, display sorting}] Template code content [/e:loop] Calling time: <?=date('m-d',$bqr[newstime])?> <?=dat…
👁 3749

Recommended reading

Responsive premium tea set and solid wood tea tray sales website template – 0444

Responsive premium tea set and solid wood tea tray sales website template – 0444 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for businesses specializing in the sale of premium tea sets and solid wood tea trays. Its classical and elegant design perfectly showcases teaware products, solid wood tea trays, the art of tea ceremony, and brand stories. It helps teaware brands effectively present their products online and attract tea enthusiasts. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 49
Responsive Brand Skincare E-commerce Website Template 0445

Responsive Brand Skincare E-commerce Website Template 0445 Practical Collection Yiyou template

An EyouCMS responsive corporate website template designed specifically for the branded skincare industry. Its stylish and sophisticated design is ideal for showcasing skincare products, brand identity, beauty solutions, and new product launches. This template helps skincare brands effectively present their products online and attract female consumers. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 48
Responsive Fruit and Vegetable Processing Biotechnology Website Template 0446

Responsive Fruit and Vegetable Processing Biotechnology Website Template 0446 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for the fruit and vegetable processing and biotechnology industries. Its modern, health-focused design effectively showcases fruit and vegetable processing products, biotechnology innovations, R&D capabilities, and corporate image. It helps biotechnology companies present their brands online and attract potential partners. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Common Installation Questions for EyouCMS...
👁 40
Resource website typecho001 template

Resource website typecho001 template Program Notes Typecho

typecho001 template template please do not modify the folder name of this template. The folder name is: typecho001 1.4 Fix the js output problem on the article page 1.3 Fix the error prompt when the plug-in is not installed Optimize the list page code output 1.2 Fix the comment function and add a custom homepage title 1.1 Fix the comment reply asymmetry function Add a separate title setting function on the homepage Add the website favicon.ico icon Add one...
👁 199
Responsive Import/Export Trading Company Website Template 0447

Responsive Import/Export Trading Company Website Template 0447 Practical Collection Yiyou template

An eyouCMS responsive website template designed specifically for import and export trading companies. Its international, professional design effectively showcases import and export operations, trade products, global markets, and corporate strength. This template helps foreign trade companies present their brands online and attract international business clients. Template Display / Installation Instructions: Website Backend: /login.php; Username: admin; Password: admin. Related Articles: Summary of Common Installation Issues for YououCMS; YououCMS...
👁 46
Modification of typecho paging style

Modification of typecho paging style Program Notes Typecho

Sir, times have changed! Typecho is currently the most perfect solution, because Baidu can only see the code of fixed thinking. The actual generated HTML code is breathtakingly clean and fully customized, including adding classes to the li element, adding classes to the a element, adding classes to the previous page and next page, and removing the li tags that come with typecho to express more. I can even add some text to the content inside...
👁 517