﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
8396	<p> inside <strong> inside <p> erases all the text beneath	Daniel		"Hi

First of all i'm using FCKeditor 2.6.2 version '''(2.6.6 gives a bit different error - which i will describe beneath)'''

In order to recreate the bug in the text editor I entered the source mode of the editor (clicked the source button in the toolbar) and typed :

{{{
<p>one</p>
<p><strong><p>two</p></strong></p>
<p>three</p>
}}}

notice the ""<p>two</p>"" between the strong tags

not if u switch back to normal mode and i see the 
one 
two 
three


in the editor , and i select the entire ""two"" word and click on the ""bold"" button on the toolbar i get the line being deleted and the line beneath it too...

if I type the same text but without the extra <p> tags inside the <strong> tag all works well,
this is looks like this
{{{
<p>one</p>
<p><strong>two</strong></p>
<p>three</p>
}}}

NOW, i did some debugging and found out that in the fckstyles.js file in the RemoveFromRange function , when i got the extra <p> tags the FCKEDITOR recognize the word ""two"" as DispHTMLDocument node with NodeType= 3 and NodeName= #text


While without the extra <p> node the FCKEDITOR recognize the word ""two"" as DispHTMLPhraseElement node with NodeType= 1 and NodeName= #STRONG,

How can it be fixed? 
cause I only gave a simple example, but this happens in larger text in which for some reasons the extra <p> appears allot!

'''Same input in 2.6.6 version gives the following results'''
after selecting the ""two "" word (with a little space after it) and click on the bold button i get js error object required in fckdomtools.js cause existingNode
and after I click yes/no in the alert message the source of the text looks like this

{{{
<p>one</p>
<p>
<p>&nbsp;</p>
<p>three</p>
</p>
<p><span id=""1316587844776S"" style=""display: none"">&nbsp;</span>two</p>
<p><span id=""1316587844745E"" style=""display: none"">&nbsp;</span></p>
}}}

if i select only the ""two"" without any spaces before or after the source of the text looks like this


{{{
<p>one</p>
<p>
<p>&nbsp;</p>
<p>three</p>
</p>
<p>two</p>
}}}


notice that in both cases the ""two"" being shifted to the bottom of the page


Thanks ahead,


Regards,

Daniel.R"	Bug	closed	Normal		General	FCKeditor 2.6.6	invalid		vedmack@…
