Ticket #4791: 4791.patch

File 4791.patch, 793 bytes (added by Garry Yao, 14 years ago)
  • _source/plugins/htmldataprocessor/plugin.js

     
    4141        function blockNeedsExtension( block )
    4242        {
    4343                var lastChild = lastNoneSpaceChild( block );
    44                 return !lastChild || lastChild.type == CKEDITOR.NODE_ELEMENT && lastChild.name == 'br';
     44
     45                return !lastChild
     46                        || lastChild.type == CKEDITOR.NODE_ELEMENT && lastChild.name == 'br'
     47                        // Some of the controls in form needs extension too,
     48                        // to move cursor at the end of the form. (#4791)
     49                        || block.name == 'form' && lastChild.name == 'input';
    4550        }
    4651
    4752        function extendBlockForDisplay( block )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy