去除CKEditor自动添加的p

CKEditor 3 JavaScript API Documentation:http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.htm

1.去除CKEditor自动添加的<p></p>
在ckeditor目录下config.js添加

config.enterMode = CKEDITOR.ENTER_BR;
config.shiftEnterMode = CKEDITOR.ENTER_P; 

2.默认源码模式:

config.startupMode = ‘source’;

 

 

你可能感兴趣的:(JavaScript,html,Ajax,Web)