﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
9912	Switching to source and back creates invalid html	Satya Minnekanti		"'''To reproduce the defect:'''

1. Open any sample for CKEditor 4.0, clear the screen.

2. Type the paragraphs of text.

3. Switch to source mode and you will see the following. 

{{{ 
<p dir=""ltr"">This is line 1.</p>

<p dir=""ltr"">This is line 2.</p>
}}}

4. While in source mode add a <br /> between the two p's as shown below. 
{{{
<p dir=""ltr"">This is line 1.</p>

<br />

<p dir=""ltr"">This is line 2.</p>
}}}

5. Switch out of source mode and then back to source mode and you will see the following invalid html.

{{{
<p dir=""ltr"">This is line 1.</p>

<p dir=""ltr"">&nbsp;</p>

<p dir=""ltr"">This is line 2.</p>

<p dir=""ltr"">&nbsp;</p>
}}}


'''Issue: Notice that <br /> tag been removed & original html is modified by the insertion of p blocks with &nbsp;'s.''' 

This is very problematic since we have many docs that exist with embedded br's and every time we save & reload them, they become more and more corrupt.

This works in 3.6.6 but after step 4 go to Rich Text mode and keep your cursor in between the 2 paragraph's

'''See that empty space br get's removed'''"	Bug	closed	Normal		General	4.0 Beta	invalid	IBM	Damian Teresa Monahan
