Ticket #8057: 8057.patch

File 8057.patch, 687 bytes (added by Sa'ar Zac Elias, 9 years ago)
  • _source/plugins/autogrow/plugin.js

     
    3434                var last = doc.getBody().getLast();
    3535
    3636                // Last node is not measurable,  create a temporary marker element.
    37                 if ( !last || last.type != CKEDITOR.NODE_ELEMENT || last.is( 'br' ) )
     37                if ( !last || last.type != CKEDITOR.NODE_ELEMENT || last.is( 'br' ) || !last.isVisible() )
    3838                {
    3939                        last = CKEDITOR.dom.element.createFromHtml( '<span>' + ( CKEDITOR.env.webkit ? '&nbsp;' : '' ) + '</span>', doc );
    4040                        doc.getBody().append( last );
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy