Site icon Puneet Sharma – Freelance Web Developer

How to remove the p tag automatically added by CKEditor?

Use the following setting to make your ckeditor’s output p tag free that is automatically included by ckeditor.whenever you start writing something.

autoParagraph: false,

CKEDITOR.replace('editor1', {
        uiColor: '#dadada',
        height: 250,
        forcePasteAsPlainText: true,
        autoParagraph: false,
    });
Exit mobile version