How to remove the p element in {dede:field.body/} in Dreamweaver?
DreamWeaver DEDECMS removes the p element in {dede:field.body/}
Recommended learning: Dreamweaver cms
us When adding content in the background, the system often automatically adds
elements, especially sometimes when there are no unnecessary parts at the beginning and end. The following method can be used to remove the automatic addition of p elementsModify include/ckeditor/config.js:
Add
config.filebrowserImageUploadUrl = "../include/dialog/select_images_post.php";
below
config.enterMode = CKEDITOR.ENTER_BR; config.shiftEnterMode = CKEDITOR.ENTER_P;
and that’s it!
The above is the detailed content of How to remove the p element in {dede:field.body/} in DreamWeaver. For more information, please follow other related articles on the PHP Chinese website!