Trying to figure out why extra <p> and <p> nbsp </p> are inserted at the start and end of the text.
- cype ABC in the empty editor box
- click Submit
- view the source of the page and look at the FCKeditor_OnComplete function; HTMLToLoad is what you submitted: <p>ABC</p>
- without changing anything in the ditor box, click Submit again
- view the source of the page again and look at the FCKeditor_OnComplete function; HTMLToLoad now has extra opening and closing Paragrah tags:
Under slightly different circumstances a blank line is also added at the bottom of the text, like so: <p>nbsp;</p>. This page doesn't demonstrate that because I don't want to complicate this example.
Why is that happening and how do we prevent it? I'd appreciate a response sent to email@example.com.