After you press enter in the dedecms5.7 editor, you can use a lot of functions of the dedecms5.7 editor instead of the P-tutushow Zhimeng CMS, but there are also many small problems that can be a headache, how does one feel that every upgrade is troublesome? The dedecms5.7 editor is believed to be depressing to many people. after you press enter
Instead
In this case, it is very difficult for everyone to think about it, because in terms of browsing habits of Chinese people, we generally have an empty section between paragraphs, usually the code is
But the new version 5.7 returns
This is not what we want. today we will solve this problem for everyone.
Find the installation directory \ include \ ckeditor \ config. js.
Config. autoParagraph = false; config. enterMode = CKEDITOR. ENTER_BR; config. shiftEnterMode = CKEDITOR. ENTER_P;
Replace the second and third rows
Config. autoParagraph = false; config. enterMode = CKEDITOR. ENTER_P; config. shiftEnterMode = CKEDITOR. ENTER_BP;
Or comment out the following code.
// Config. autoParagraph = false; // config. enterMode = CKEDITOR. ENTER_P; // config. shiftEnterMode = CKEDITOR. ENTER_BP;