Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Dedecms v5.7 editor default enter line break how to change paragraph break

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Dedecms v5.7 editor default carriage return how to change paragraphs? This problem may be our daily study or work often see. I hope you learned something from this question. The following is the reference content brought to you by Xiaobian. Let's take a look together!

Dedecms v5.7 editor default carriage return how to change paragraphs?

Dedecms v5.7 SP1 Ckedit editor some changes, the default is carriage return, Shift+Enter for paragraphs, but you webmaster friends are used to typing carriage return for paragraphs directly, after viewing it found that the configuration file can be modified to solve.

In fact, you can comment out the following code to adopt another mode (enter for paragraph):

Found: Installation directory\include\ckedit\config.js:

The code is as follows:

config.autoParagraph = false; config.enterMode = CKEDITOR.ENTER_BR; config.shiftEnterMode = CKEDITOR.ENTER_P;

Replace the next two lines with the following code:

The code is as follows:

config.enterMode = CKEDITOR.ENTER_P; config.shiftEnterMode = CKEDITOR.ENTER_BP;

Or change it to some HTML tags you often use, such as:

The code is as follows:

config.enterMode = 'p' ; // p | div | br config.shiftEnterMode = 'br' ; // p | div |BR Thank you for reading! After reading the above, do you know how to change the default carriage return key to paragraph change in Dedecms v5.7 editor? I hope the content of this article is helpful to everyone. If you want to know more about related articles, please pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report