Ticket #2531: fix_enterkey.patch
File fix_enterkey.patch, 1.6 KB (added by , 16 years ago) |
---|
-
editor/_source/internals/fckdomtools.js
912 912 { 913 913 if ( child.nodeType == 1 ) 914 914 { 915 // ignore bogus BR's 916 if ( child.nodeName.toLowerCase() == "br" && ( child.getAttribute( 'type' ) == '_moz' || child.getAttribute( '_moz_dirty' ) == "" ) ) 917 child = child.nextSibling ; 918 continue; 919 920 if ( !elementCheckCallback || elementCheckCallback( child ) === true ) 921 elementChild = child ; 922 915 923 if ( elementChild || !FCKListsLib.InlineNonEmptyElements[ child.nodeName.toLowerCase() ] ) 916 924 return false ; 917 918 if ( !elementCheckCallback || elementCheckCallback( child ) === true )919 elementChild = child ;920 925 } 921 926 else if ( child.nodeType == 3 && child.nodeValue.length > 0 ) 922 927 return false ; -
editor/_source/classes/fckenterkey.js
530 530 oRange.MoveToElementEditStart( bIsStartOfBlock && !bIsEndOfBlock ? eNextBlock : eNewBlock ) ; 531 531 } 532 532 533 if ( FCKBrowserInfo.IsGeckoLike ) 533 // Causes a problem when the following paragraph is huge, looks like the cursor jumped way down. 534 if ( FCKBrowserInfo.IsGeckoLike && FCKDomTools.CheckIsEmptyElement( eNextBlock || eNewBlock ) ) 534 535 FCKDomTools.ScrollIntoView( eNextBlock || eNewBlock, false ) ; 535 536 536 537 oRange.Select() ;