找到:安装目录\include\ckeditor\config.js:
- config.autoParagraph = false;
- config.enterMode = CKEDITOR.ENTER_BR;
- config.shiftEnterMode = CKEDITOR.ENTER_P;
将红色部分的代码替换为以下代码:
- config.enterMode = CKEDITOR.ENTER_P;
- config.shiftEnterMode = CKEDITOR.ENTER_BP;
或者改成你常用的一些HTML标签也是可以的,比如:
- config.enterMode = 'p' ; // p | div | br
- config.shiftEnterMode = 'br' ; // p | div | br