Changeset 812
- Timestamp:
- 2007-09-14 10:37:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/internals/fck_gecko.js
r774 r812 153 153 // things are a little bit more interesting if our parent is not a block node 154 154 // due to the weired ways how Gecko's caret acts... 155 156 155 var stopNode = node.nextSibling ; 157 156 … … 174 173 // note that the dummy marker below is NEEDED, otherwise the caret's behavior will 175 174 // be broken in Gecko. 176 var marker = FCK.EditorDocument.createTextNode( "") ;175 var marker = FCK.EditorDocument.createTextNode( '' ) ; 177 176 if ( stopNode ) 178 177 node.parentNode.insertBefore( marker, stopNode ) ; … … 252 251 253 252 // Kludge for buggy Gecko caret positioning logic (Bug #393 and #1056) 254 if ( FCKBrowserInfo.IsGecko )253 if ( FCKBrowserInfo.IsGecko || FCKBrowserInfo.IsOpera ) 255 254 { 256 255 this.EditorDocument.addEventListener( 'keypress', this._ExecCheckCaret, false ) ; 257 256 this.EditorDocument.addEventListener( 'click', this._ExecCheckCaret, false ) ; 257 } 258 if ( FCKBrowserInfo.IsGecko ) 258 259 this.AttachToOnSelectionChange( this._ExecCheckEmptyBlock ) ; 259 }260 260 261 261 // Reset the context menu.