Hongmu Notes
Home page › 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 Empire CMS backend editor, pressing Enter inserts a <br> tag; this can be seen when viewing the "Source Code" (top-left corner). The <br> tag inserts an automatic line break, which is less effective than a paragraph tag.

Although the effects of these two approaches are roughly the same—both cause a new line to be created—the paragraph tag makes the page content structurally clearer when the source code is viewed.

Step 1: Locate the following three files


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

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

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

Step 2: Locate the key code


  config.enterMode = CKEDITOR.ENTER_BR;

  config.shiftEnterMode = CKEDITOR.ENTER_P;

change to:


  config.enterMode=CKEDITOR.ENTER_P;

  config.shiftEnterMode=CKEDITOR.ENTER_P;

I replace everything with p tags; anyway, br tags are not ideal and are not conducive to SEO, so I generally do not use them.

微信赞赏

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 Writing SQL Extensions for Empire CMS; basic examples of Empire CMS database statements and SQL statement syntax: Note: The examples below assume that the PHP files are located in the system root directory. Example 1: Connecting to the MySQL database program. (a.php) <?php require('e/class/connect.php'); // Load the database configuration file and the shared function file requ...
👁 676
Empire CMS obtains the system COOKIE variable function getcvar()

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

Syntax for retrieving the system COOKIE variable: getvar($var, $ecms). Description: $var: the variable name; $ecms: 0 indicates that a front-end COOKIE variable is being set, while 1 indicates that a back-end COOKIE variable is being set. This parameter may be omitted; the default value is 0. Usage example: getvar('mlusername'), retrieves the username of a front-end logged-in member; getvar('loginu...
👁 571
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: &lt;?=date('m-d',$bqr[newstime])?&gt; &lt;?=dat…
👁 4139

Recommended reading

Empire cms7.5 adds TAG auxiliary plug-ins in batches

Empire cms7.5 adds TAG auxiliary plug-ins in batches Program Notes Empire cms

This plugin is merely a supplementary tool; it does not matter whether it is for the Empire version or not—both 7.5 and 7.2 are fine. Duplicate tags will not be inserted successfully. PHP code: &lt;?php require('../e/class/connect.php'); require('../e/class/db_sql.php'); $link=db_connect(); $e...
👁 564
PHP filectime() function

PHP filectime() function Language Notes PHP

Definition and Usage: The filectime() function returns the last modification time of the specified file. The function checks the file's regular modification status and its inode modification status. inode modification status refers to changes in permissions, ownership, user groups, or other metadata. If successful, the function returns the file's last modification time in Unix timestamp format. If it fails, it returns FALSE...
👁 393
How to download files from private space in Qiniu Cloud Object Storage PHP?

How to download files from private space in Qiniu Cloud Object Storage PHP? Summary of pitfalls

To download a file from a private storage space in Qiniu Cloud Object Storage, you first need to obtain the file's download link. This can be done through the following steps: Obtain the download domain for the private storage space. In the Qiniu Cloud backend, select the corresponding storage space, go to the "Domain Settings" page, locate the download domain for the private storage space (e.g., http(s)://&lt;domain&gt;), and note the address for later use. Generate the download link using Qiniu Cloud PHP SD...
👁 436
(PC+WAP) Auto Parts Lubricant Auto Parts pbootcms website template Auto repair 4S shop website source code download 0062

(PC+WAP) Auto Parts Lubricant Auto Parts pbootcms website template Auto repair 4S shop website source code download 0062 Practical Collection pbootcmstemplate

This PbootCMS template is designed for the automotive parts, lubricants, and automotive parts industries, and supports both PC and WAP platforms. Its bold and sophisticated design effectively showcases automotive parts products and repair services. The template helps automotive parts manufacturers or 4S dealership repair businesses establish their brand image online and expand their sales channels. Template display; installation instructions; website backend: /admin.php; account: admin; password: admin; extraction password...
👁 313