Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-02 03:34:23 10月04日 Update

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.

Tags: Paragraphs codes enter keys editors content articles questions frequently used documents more friends tags patterns comments catalogs look webmaster industry information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno Apple Xiaomi Microsoft Linux