#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: |
Description
iam using html editor in my application....iam using asp.net,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 key.....how to avoid two spaces by cling enter key in fck editor?
Change History (2)
comment:1 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
NOTE: If you were talking about FCKeditor then it is no longer supported but way to fix it is probably very similar.
There are two ways to avoid "two spaces" when enter is pressed.
http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.enterMode
http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.shiftEnterMode
To make spaces for paragraphs smaller you can add rule to your contents.css file E.g.
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.