﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
14845	Using justify in BR mode doesn't remove trailing BR's in IE thus resulting in new line	Jakub Ś		"== Steps to reproduce ==

1. Configure CKEditor so that it uses (you can also use {{{allowedContent:true}}} for simplicity)
{{{
var editor = CKEDITOR.replace( 'editor1', {
	enterMode : CKEDITOR.ENTER_BR,	
	allowedContent : '*{*}'
});
}}}
2. Switch to source mode and paste below HTML:
{{{
<div >
	<div >
		<div style=""font-family: tahoma,arial; font-size: 9pt;"">
			<div  style=""padding: 4px;"">
				<div  >
					<span style=""border: 0pt rgb(0, 0, 0); text-align: left; color: rgb(0, 0, 0); padding-top: 0px; padding-bottom: 0px; font-style: normal; font-weight: normal; text-decoration: none; margin-top: 0px; margin-bottom: 0px;"">
						<span style=""padding-top: 0px; padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px;"">
							<span class=""ddspellcheck"" id=""scayt3"">jkhgkjh</span>
						</span>
						<br>
						<span style=""padding-top: 0px; padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px;"">
							<span class=""ddspellcheck"" id=""scayt2"">gkjhgkjh</span>
						</span>
						<br>
						<span style=""padding-top: 0px; padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px;"">
							<span class=""ddspellcheck"" id=""scayt1"">gkjhlgfkhj</span>
						</span>
					</span>
					<br>
				</div>
			</div>
		</div>
	</div>
</div>
}}}
3. Switch to wysiwyg, click inside middle line and click justify center.

== Expected result ==

Middle line gets centered.

== Actual result ==

Middle line gets centred but extra line is added. This is happening because BR in first span (which gets wrapped into div) doesn't get removed like in modern browsers.
{{{
<div>
	<div>
		<div style=""font-family: tahoma,arial; font-size: 9pt;"">
			<div style=""padding: 4px;"">
				<div>
					<span style=""border: 0pt rgb(0, 0, 0); text-align: left; color: rgb(0, 0, 0); padding-top: 0px; padding-bottom: 0px; font-style: normal; font-weight: normal; text-decoration: none; margin-top: 0px; margin-bottom: 0px;"">
						<span style=""padding-top: 0px; padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px;"">
							<span class=""ddspellcheck"" id=""scayt3"">jkhgkjh</span> 
						</span>
					</span>
					<br /> <!-- This doesn't get reoved -->
					&nbsp;
				</div>
				<div style=""text-align: center;"">
					<span style=""padding-top: 0px; padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px;"">
						<span class=""ddspellcheck"" id=""scayt2"">gkjhgkjh</span> 
					</span>
				</div>

				<div>
					<span style=""border: 0pt rgb(0, 0, 0); text-align: left; color: rgb(0, 0, 0); padding-top: 0px; padding-bottom: 0px; font-style: normal; font-weight: normal; text-decoration: none; margin-top: 0px; margin-bottom: 0px;"">
						<span style=""padding-top: 0px; padding-bottom: 0px; margin-top: 0px; margin-bottom: 0px;"">
							<span class=""ddspellcheck"" id=""scayt1"">gkjhlgfkhj</span> 
						</span> 
					</span>
				</div>
			</div>
		</div>
	</div>
</div>
}}}

== Other details (browser, OS, CKEditor version, installed plugins) ==

Problem can be reproduced from CKEditor 4.0 in IE10 and below
"	Bug	confirmed	Nice to have (we want to work on it)		General	4.0		Support IE10 IE9 IE8	jayhamiltoniv@…
