Changeset 5869


Ignore:
Timestamp:
09/12/2010 08:18:04 PM (4 years ago)
Author:
Saare
Message:

#6255: Error when inserting page break if there is no element before it.

Location:
CKEditor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • CKEditor/trunk/CHANGES.html

    r5868 r5869  
    6969                <li><a href="http://dev.ckeditor.com/ticket/6197">#6197</a> : The CKEDITOR.loader base path auto-detection was not working with the _source folder.</li> 
    7070                <li><a href="http://dev.ckeditor.com/ticket/6240">#6240</a> : Font Names & Font Sizes should be shown Left Align even for RTL Languages.</li> 
    71                 <li><a href="http://dev.ckeditor.com/ticket/5975">#5975</a> : page-break should have proper Alt Text instead of Unknown object. so that JAWS reads it properly.</li> 
     71                <li><a href="http://dev.ckeditor.com/ticket/5975">#5975</a> : Page-break should have proper Alt Text instead of Unknown object. so that JAWS reads it properly.</li> 
     72                <li><a href="http://dev.ckeditor.com/ticket/6255">#6255</a> : Inserting a page break as the first node triggered an error.</li> 
    7273                <li>Updated the following language files:<ul> 
    7374                        <li><a href="http://dev.ckeditor.com/ticket/6246">#6246</a> : Chinese Simplified;</li> 
  • CKEditor/trunk/_source/plugins/pagebreak/plugin.js

    r5867 r5869  
    113113                        var previous = breakObject.getPrevious(); 
    114114 
    115                         if ( CKEDITOR.dtd[ previous.getName() ].div ) 
     115                        if ( previous && CKEDITOR.dtd[ previous.getName() ].div ) 
    116116                                breakObject.move( previous ); 
    117117                } 
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy