Hi
First of all i'm using FCKeditor 2.6.2 version
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 :
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
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!
Thanks ahead,
Regards,
Daniel.R
First of all i'm using FCKeditor 2.6.2 version
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!
Thanks ahead,
Regards,
Daniel.R