...
jQuery, Tutorials

Turn off enclosing p tags in CKEditor

26 December 2018

In this post, we are going to show how remove p tags auto add in ckeditor content while store in database.
To turn off the automatic enclosing of all written content within <p> in CKEditor. Use below code to prevent auto add <p> tag in ckeditor code update :

<script type="text/javascript" src="/js/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/js/ckeditor/adapters/jquery.js"></script>
<script>
CKEDITOR.config.autoParagraph = false;
</script>

Leave a Comments