Changeset 812

Show
Ignore:
Timestamp:
2007-09-14 10:37:20 (15 months ago)
Author:
martinkou
Message:

Fix for #332 : Hitting Enter should not continue a link in the next paragraph in Opera.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/internals/fck_gecko.js

    r774 r812  
    153153                                        // things are a little bit more interesting if our parent is not a block node 
    154154                                        // due to the weired ways how Gecko's caret acts... 
    155  
    156155                                        var stopNode = node.nextSibling ; 
    157156 
     
    174173                                        // note that the dummy marker below is NEEDED, otherwise the caret's behavior will  
    175174                                        // be broken in Gecko. 
    176                                         var marker = FCK.EditorDocument.createTextNode( "" ) ; 
     175                                        var marker = FCK.EditorDocument.createTextNode( '' ) ; 
    177176                                        if ( stopNode ) 
    178177                                                node.parentNode.insertBefore( marker, stopNode ) ; 
     
    252251 
    253252        // Kludge for buggy Gecko caret positioning logic (Bug #393 and #1056) 
    254         if ( FCKBrowserInfo.IsGecko ) 
     253        if ( FCKBrowserInfo.IsGecko || FCKBrowserInfo.IsOpera ) 
    255254        { 
    256255                this.EditorDocument.addEventListener( 'keypress', this._ExecCheckCaret, false ) ; 
    257256                this.EditorDocument.addEventListener( 'click', this._ExecCheckCaret, false ) ; 
     257        } 
     258        if ( FCKBrowserInfo.IsGecko ) 
    258259                this.AttachToOnSelectionChange( this._ExecCheckEmptyBlock ) ; 
    259         } 
    260260 
    261261        // Reset the context menu.