#3374: Indenting list item remove subsequent item
--------------------------+-------------------------------------------------
  Reporter:  highjinx_53  |       Owner:  garry.yao        
      Type:  Bug          |      Status:  reopened         
  Priority:  Normal       |   Milestone:  CKEditor 3.0     
 Component:  General      |     Version:                   
Resolution:               |    Keywords:  Confirmed Review?
--------------------------+-------------------------------------------------

Comment(by martinkou):

 Hmm... I was aware of the fact that your simplification removed the
 nearestListBlock check in the while loop. But I though it was ok since it
 still worked in the list indent/outdent cases. But the error comes out
 when you are indenting normal blocks instead.

 There should be no need to restore to the old, longer code. You can just
 change it to the following and it will work:
 {{{
             while ( nearestListBlock && !( nearestListBlock.type ==
 CKEDITOR.NODE_ELEMENT && listNodeNames[ nearestListBlock.getName() ] ) )
                 nearestListBlock = nearestListBlock.getParent();

 }}}

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/3374#comment:7>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to