VIP福利
主页 > 建站问题 > 织梦技巧 > CKEditor 回车P换成DIV或BR,出去HTML元素自动换行等

CKEditor 回车P换成DIV或BR,出去HTML元素自动换行等

修改include/ckeditor/config.js,在 config.filebrowserImageUploadUr l = ../include/dialog/select_images_post.php; 在16,17行找到 config.enterMode = CKEDITOR.ENTER_BR; config.shiftEnterMode = CKEDITOR.ENTER_P; 注: config.enterMode = CKEDITOR.ENTER_BR;// 意思为回车后为br/标签 […]



修改include/ckeditor/config.js,在

config.filebrowserImageUploadUr "../include/dialog/select_images_post.php";

在16,17行找到

config.enterMode CKEDITOR.ENTER_BR;

config.shiftEnterMode CKEDITOR.ENTER_P;

 

注:

config.enterMode CKEDITOR.ENTER_BR;//  意思为回车后为<br/>标签
config.shiftEnterMode CKEDITOR.ENTER_P;//意思为shift+回车后为<p>标签

 

将16,17行的内容改为

 config.enterMode =CKEDITOR.ENTER_P;
 config.shiftEnterMode CKEDITOR.ENTER_BR;即可!


说点什么吧
  • 全部评论(0
    还没有评论,快来抢沙发吧!