How to change the line feed of the carriage return in the dedecms background editor to a paragraph change

Regarding the question of how to change the line feed of the carriage return of the dedecms background editor to change the paragraph, the webmaster friends here have a problem with the webmaster friends who use dedecms in the php virtual host. What is the problem, is that every time you click the carriage return When it is, it always wraps. The result we need is to change the paragraph directly. That is to say, when you click Enter, you will directly enter the second paragraph instead of the second line. This is like a local computer. It’s the same as the word article, so it’s said that AB Template.com also went around in the forum for a long time and found out that there was this article. It’s not that I was looking for it deliberately, but it was suddenly discovered when I was looking for the material. So Just share this with the webmaster friends, I personally tested it to be successful. Previously, you had to shift+enter to change paragraphs. Now what you want to achieve is to directly click the enter key, which is the enter key, to change paragraphs. Then this method of implementation, the editor that comes with dedecms is implemented using js, but this function is almost all controlled by js files, so we just follow the instructions in the tutorial to operate, remember to do this operation This file needs to be backed up. The tutorial is as follows: Find the include/ckeditor/config.js file, and then open it to quickly find the code:

config.enterMode = CKEDITOR.ENTER_BR; config.shiftEnterMode = CKEDITOR.ENTER_P;
Then modify the code as follows:
config.enterMode = CKEDITOR.ENTER_P; config.shiftEnterMode = CKEDITOR.ENTER_BP;
In this way, we quickly implemented the function, yes It's not very simple, you can also give it a try!

Guess you like

Origin blog.csdn.net/a9490489/article/details/109321370