Ticket #8821: 8821.patch

File 8821.patch, 1.0 KB (added by Garry Yao, 12 years ago)
  • _source/plugins/wysiwygarea/plugin.js

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    779779                                                        {
    780780                                                                if ( CKEDITOR.env.gecko )
    781781                                                                {
    782                                                                         var scroll = domWindow.getScrollPosition();
     782                                                                        var body = domDocument.getBody();
     783
    783784                                                                        // Page up/down cause editor selection to leak
    784785                                                                        // outside of editable thus we try to intercept
    785786                                                                        // the behavior, while it affects only happen
    786787                                                                        // when editor contents are not overflowed. (#7955)
    787                                                                         if ( !scroll.y )
     788                                                                        if ( domWindow.$.innerHeight > body.$.offsetHeight )
    788789                                                                        {
    789                                                                                 var body = domDocument.getBody();
    790790                                                                                range = new CKEDITOR.dom.range( domDocument );
    791791                                                                                range[ keyCode == 33 ? 'moveToElementEditStart' : 'moveToElementEditEnd']( body );
    792792                                                                                range.select();
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy