I'm trying to figure out how to remove the whitespace that comes after the <p> tag because it is conflicting with my data validation. I read the page at http://docs.cksource.com/CKEditor_3.x/D ... Formatting and it didn't help... I'm not a super-high-end developer and I've found the documentation for CKEditor to be a little bit over my head in some places.
I tried to find the code that was referenced on the above page, but I couldn't figure out exactly where it was or how to change it.
I'm working with the latest version of the software, downloaded about 48 hours ago. I would appreciate it if someone would be kind enough to give me explicit, simple directions that look something like:
Open the file abc/xyz, go to line 123 and change jfk to mno.
I'll be grateful for any assistance in this matter, thank you.
Thu, 10/21/2010 - 19:53
#1
Re: Spaces after Paragraph tag,I read the docs, still need h
This is what you need to do to get rid of the whitespace and return after the <p> (paragraph) tag.
In the file ckeditor.js.
Go to line number 122. This is a very long line as are most lines in this file. Look for or search for "n.setRules" (without the quotes). Following that there is a list of items, indent, breakBeforeOpen, breakAfterOpen, breakBeforeClose, and breakAfterClose. Change or make sure indent and breakAfterOpen are set to false.
Still in line number 122. After n.setRules('br',{breakAfterOpen:false}); add n.setRules('p',{breakAfterOpen:false});
Now go to line number 257. This line is very similar to line 122 and is very long as well. Look for or search for "n.setRules" (without the quotes) again. Following that there is a list of items once again, indent, breakBeforeOpen, breakAfterOpen, breakBeforeClose, and breakAfterClose. Change or make sure indent and breakAfterOpen are set to false.
Still in line number 257. After n.setRules('br',{breakAfterOpen:false}); add n.setRules('p',{breakAfterOpen:false}); again.
That is it! Check the editor and you should no longer have extra space when you hit return (Enter). Hope this helps.