Friday, May 6, 2011

CKEditor in Drupal - Tip

Help your users and change one little configuration in the CKEditor Profile.  Taking the following steps will give them a more consistent interface between their editors (OpenOffice, Word, etc.)

  • Open the Profile in CKEditor that you are using
  • Goto "Cleanup and ouput"
  • Change "Enter mode" to <br>
  • Change "Shift + Enter mode" to <p>


2 comments:

  1. Jarod, I *strongly* recommend NOT to change these settings. In HTML, paragraphs must be inside <p>, while <br> is supposed to be used exclusively for soft like breaks.

    This is all about semantics and the editor itself. It'll just work better with <p> on ENTER.

    If your problem is just the spacing between the paragraphs, it's enough to simply use CSS to remove the margin and padding for <p>. Note that his just makes things less readable though.

    Fred, from CKEditor ;)

    ReplyDelete
  2. Thanks for the info Fred! I like what you have said and I did some research and testing a bit more. I was wondering though, why do those settings exist then?

    ReplyDelete