Home >CMS Tutorial >DEDECMS >How to remove the p element in {dede:field.body/} in DreamWeaver

How to remove the p element in {dede:field.body/} in DreamWeaver

藏色散人
藏色散人Original
2020-01-08 09:48:502630browse

How to remove the p element in {dede:field.body/} in DreamWeaver

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 64e5601d0a941f4972a2954192bdae18ee2bfd64228f824cf6027e0da2815b78 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 elements

Modify 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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn