Changeset 805


Ignore:
Timestamp:
09/13/2007 05:15:05 AM (7 years ago)
Author:
martinkou
Message:

Fixed the issue where justfiy commands do not work for bare text nodes under document.body.
Fixed the issue where FCKDomRange.Expand() and FCKDomRange.FixBlock() does not work when the range is in a bare text node under document.body.

Location:
FCKeditor/trunk/editor/_source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/commandclasses/fckjustifycommands.js

    r804 r805  
    3434                var range = new FCKDomRange( FCK.EditorWindow ) ; 
    3535                range.MoveToSelection() ; 
     36                var bookmark = range.CreateBookmark() ; 
    3637                range.Expand( 'block_contents' ) ; 
    3738                if ( range.StartContainer == range.Window.document.body ) 
     
    4445                        range.StartContainer.style.textAlign = '' ; 
    4546 
     47                range.MoveToBookmark( bookmark ) ; 
     48                range.Select() ; 
    4649                FCK.Events.FireEvent( 'OnSelectionChange' ) ; 
    4750        }, 
  • FCKeditor/trunk/editor/_source/internals/fcklistslib.js

    r799 r805  
    5656         
    5757        // Elements used to separate block contents. 
    58         BlockBoundaries : { p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,address:1,pre:1,ol:1,ul:1,li:1,dt:1,de:1,table:1,thead:1,tbody:1,tfoot:1,tr:1,th:1,td:1,caption:1,col:1,colgroup:1,blockquote:1 }, 
    59         ListBoundaries : { p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,address:1,pre:1,ol:1,ul:1,li:1,dt:1,de:1,table:1,thead:1,tbody:1,tfoot:1,tr:1,th:1,td:1,caption:1,col:1,colgroup:1,blockquote:1,br:1 }, 
     58        BlockBoundaries : { p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,address:1,pre:1,ol:1,ul:1,li:1,dt:1,de:1,table:1,thead:1,tbody:1,tfoot:1,tr:1,th:1,td:1,caption:1,col:1,colgroup:1,blockquote:1,body:1 }, 
     59        ListBoundaries : { p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,hr:1,address:1,pre:1,ol:1,ul:1,li:1,dt:1,de:1,table:1,thead:1,tbody:1,tfoot:1,tr:1,th:1,td:1,caption:1,col:1,colgroup:1,blockquote:1,br:1,body:1 }, 
    6060 
    6161        // Final setup of FCKListsLib once the editor is loaded (at FCK.StartEditor). 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy