Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4060392
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:19:55+00:00 2026-05-20T15:19:55+00:00

I am using CKEditor and what it does is add by default a <p>

  • 0

I am using CKEditor and what it does is add by default a <p> at the beginning of the content.

Even if I set enterMode to be <br/>, it will only affect what the Enter key does, and keep the starting <p>.

The problem I have with that is that if a text starts with an <img> tag, it will wrap the <p> around that and the float:left on the image has no effect anymore.

How can I stop the default <p> from showing please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T15:19:56+00:00Added an answer on May 20, 2026 at 3:19 pm

    Was looking for the answer to this question also and found this link helped: http://cksource.com/forums/viewtopic.php?f=11&t=15467&hilit=prevent+%3Cp%3E

    So adding this to your config.js file works:

    CKEDITOR.editorConfig = function( config )
    {
        config.enterMode = CKEDITOR.ENTER_BR;
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

iam using ckeditor in my website to add the content to the pages. But
I'm using CKEditor in Markdown format to submit user created content. I would like
I am using CKEditor/CKFinder as wysiwyg editor on my MVC.NET site. I have set
I am using ckeditor in drupal and add some html tags in it like
Using JDeveloper , I started developing a set of web pages for a project
I am using CKEditor, and, when referring to the CKEditor instance, I need to
I am using CKEditor, jQuery and jQuery form plugin and I would like to
Greetings, I'm trying to prevent XSS and improper html from input fields using CKEditor
Using the wysiwyg CKEditor I stored the following into MySql: <p> Here is the
Does anybody know how to disable CKEditor's context (right click) menu? I would expect

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.