Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#9166 closed Bug (invalid)

how to avoid two spaces by pressing enter key in fck editor?

Reported by: deepisingh Owned by:
Priority: Normal Milestone:
Component: UI : Enter Key Version: 3.5.2
Keywords: Cc:


iam using html editor in my application....iam using,fckconfig.js,ckeditor-config.js,styles,enterkeypress.html so many files are there .....

my issue is when i press enter key in fck editor it is taking two spaces....i want only 1 spce when i press enter to avoid two spaces by cling enter key in fck editor?

Change History (2)

comment:1 Changed 12 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

There are two ways to avoid "two spaces" when enter is pressed.

  1. Change Enter mode from default P to e.g. BR

  1. Although the above is easy we recommend using ENTER_P as bowsers handle this mode best.
    To make spaces for paragraphs smaller you can add rule to your contents.css file E.g.
    p {
     margin : 1px 0;
     padding : 0;

Don't forget about clearing browsers cache after changing contents.css (CRTL+F5 might be not enough E.g. in IE)

Please also not that contents.css applies only to content area so if you later display this page somewhere else the styles for P will be gone. To keep them you should provide the same style in location where page is to be displayed.

comment:2 Changed 12 years ago by Jakub Ś

NOTE: If you were talking about FCKeditor then it is no longer supported but way to fix it is probably very similar.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy