#2419: MoveToAncestorNode does not return the correct node
-----------------------+----------------------------------------------------
 Reporter:  henrylyne  |       Owner:                      
     Type:  Bug        |      Status:  new                 
 Priority:  Normal     |   Milestone:                      
Component:  General    |     Version:  FCKeditor 2.6.3 Beta
 Keywords:             |  
-----------------------+----------------------------------------------------
 This seems to be a problem in IE7 and Safari.
 FCK.Selection.MoveToAncestorNode does not return the correct node, or
 SelectNode doesn't properly select.

 Steps to recreate:

 1. Edit source and add
 {{{
 <div><p><b>bbbbbbb</b><br /><i>iiiiiiiiiii</i></p></div>
 }}}
   Switch back to the regular editor view.

 2. Select "iiiiiiiiiii".

 3. Run the following via the browser address bar:
 {{{
  javascript: alert(frames[0].FCK.Selection.SelectNode(
 frames[0].FCK.Selection.MoveToAncestorNode('DIV') ));
  javascript: alert(frames[0].FCK.InsertHtml('abcd'));
 }}}


 4. View Source
  - IE7 has the following:
 {{{
 <div><p><b>abcd</b><br />&nbsp;</p></div>
 }}}

  - Safari has:
 {{{
 <div><p>abcd</p></div>
 }}}

 Output should look like:
 {{{
 abcd
 }}}

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/2419>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to