Removing unwanted newline characters when adding

in CKEditor

前端 未结 5 1612
时光说笑
时光说笑 2020-12-08 05:52

When loading content with a set of paragraphs in CKEditor, it replaces my

tags with

That means the editor conv

5条回答
  •  无人及你
    2020-12-08 06:09

    Add this line to the ckeditor.js configuration file:

    n.setRules('p',{indent:false,breakAfterOpen:false});
    

    More about the formatting of the HTML Writer can be found in Developers Guide: Output Formatting at CKSource Docs.

提交回复
热议问题