Ticket #2279: 2279.patch

File 2279.patch, 1.9 KB (added by fredck, 21 months ago)
  • _whatsnew.html

     
    5353                        nodeTagName object.</li>  
    5454                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1614">#1614</a>] Unified 
    5555                        FCKConfig.FullBasePath with FCKConfig.BasePath.</li> 
     56                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2276">#2276</a>] [<a target="_blank" href="http://dev.fckeditor.net/ticket/2279">#2279</a>] On Opera 
     57                        and Firefox 3, the entire page was scrolling on ENTER.</li> 
    5658        </ul> 
    5759        <p> 
    5860        </p> 
  • editor/_source/classes/fckenterkey.js

     
    531531                        oRange.MoveToElementEditStart( bIsStartOfBlock && !bIsEndOfBlock ? eNextBlock : eNewBlock ) ; 
    532532                } 
    533533 
    534                 if ( FCKBrowserInfo.IsSafari ) 
     534                if ( FCKBrowserInfo.IsGeckoLike ) 
    535535                        FCKDomTools.ScrollIntoView( eNextBlock || eNewBlock, false ) ; 
    536                 else if ( FCKBrowserInfo.IsGeckoLike ) 
    537                         ( eNextBlock || eNewBlock ).scrollIntoView( false ) ; 
    538536 
    539537                oRange.Select() ; 
    540538        } 
  • editor/_source/internals/fckdomtools.js

     
    972972        }, 
    973973 
    974974        /** 
    975          * Current implementation for ScrollIntoView (due to #1462). We don't have 
    976          * a complete implementation here, just the things that fit our needs. 
     975         * Current implementation for ScrollIntoView (due to #1462 and #2279). We 
     976         * don't have a complete implementation here, just the things that fit our 
     977         * needs. 
    977978         */ 
    978979        ScrollIntoView : function( element, alignTop ) 
    979980        {