# Customize html editor code

**URL:** <https://forum.mautic.org/t/customize-html-editor-code/2761>\
**Category:** Design\
**Created:** [November 12, 2015, 5:24pm UTC](https://forum.mautic.org/t/customize-html-editor-code/2761 "2015-11-12T17:24:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Filippo](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@Filippo](https://forum.mautic.org/u/Filippo)\
**Post date:** [November 12, 2015, 5:24pm UTC](https://forum.mautic.org/t/customize-html-editor-code/2761/1 "2015-11-12T17:24:33Z")

</div>

Hi all, I’m trying to customize some landing page templates helped by Documentation and default templates.  
  
Everything works fine and I am able to put togheter some decent design with custom fields.  
  
But, I can’t find a way to avoid the HTML editor to write

 before and after the text.  
  
  
  
How to customize CKEditor?  
  
Thank you  
  
Filippo

---

<div class="post-metadata">

**Author:** ![Filippo](https://avatars.discourse-cdn.com/v4/letter/f/4bbf92/32.png) [@Filippo](https://forum.mautic.org/u/Filippo)\
**Post date:** [November 12, 2015, 5:24pm UTC](https://forum.mautic.org/t/customize-html-editor-code/2761/2 "2015-11-12T17:24:33Z")

</div>

Hi all, I’m trying to customize some landing page templates helped by Documentation and default templates.  
Everything works fine and I am able to put togheter some decent design with custom fields.  
But, I can’t find a way to avoid the HTML editor to write

 before and after the text.

How to customize CKEditor?  
Thank you  
Filippo

---

<div class="post-metadata">

**Author:** ![vln104](https://avatars.discourse-cdn.com/v4/letter/v/5f9b8f/32.png) [@vln104](https://forum.mautic.org/u/vln104)\
**Post date:** [December 2, 2015, 10:53am UTC](https://forum.mautic.org/t/customize-html-editor-code/2761/3 "2015-12-02T10:53:04Z")

</div>

Hi,

This is a late reply so you might have already found a solution but I’ve bumped into this issue today so thought I share my fix. I found that it is a CKeditor config that is causing it to put a P tag around everything so I’ve turned it off by changing line 15 of the CKEditor config:

from: config.enterMode = CKEDITOR.ENTER\_P;

to: config.enterMode = CKEDITOR.ENTER\_BR;

in appbundlesCoreBundleAssetsjslibrariesckeditorconfig.js

Hope this helps.

Linh

---

<div class="post-metadata">

**Author:** ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)\
**Post date:** [February 2, 2020, 10:56pm UTC](https://forum.mautic.org/t/customize-html-editor-code/2761/4 "2020-02-02T22:56:49Z")

</div>


