Ticket #2297: 2297.patch
File 2297.patch, 1.6 KB (added by , 16 years ago) |
---|
-
_whatsnew.html
64 64 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2149">#2149</a>] CSS urls 65 65 with querystring parameters were not being accepted for CSS values in the configuration 66 66 file (like EditorAreaCSS).</li> 67 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2149">#2197</a>] The TAB 68 key will now have the default browser behavior if TabSpaces=0. It will move the 69 focus out of the editor (expect on Safari).</li> 67 70 </ul> 68 71 <p> 69 72 </p> -
editor/_source/classes/fckenterkey.js
43 43 oKeystrokeHandler.SetKeystrokes( [ 44 44 [ 13 , 'Enter' ], 45 45 [ SHIFT + 13, 'ShiftEnter' ], 46 [ 9 , 'Tab' ],47 46 [ 8 , 'Backspace' ], 48 [ CTRL + 8 47 [ CTRL + 8 , 'CtrlBackspace' ], 49 48 [ 46 , 'Delete' ] 50 49 ] ) ; 51 50 52 if ( tabSpaces > 0 ) 51 this.TabText = '' ; 52 53 // Safari by default inserts 4 spaces on TAB, while others make the editor 54 // loose focus. So, we need to handle it here to not include those spaces. 55 if ( tabSpaces > 0 || FCKBrowserInfo.IsSafari ) 53 56 { 54 this.TabText = '' ; 55 while ( tabSpaces-- > 0 ) 57 while ( tabSpaces-- ) 56 58 this.TabText += '\xa0' ; 59 60 oKeystrokeHandler.SetKeystrokes( [ 9, 'Tab' ] ); 57 61 } 58 62 59 63 oKeystrokeHandler.AttachToElement( targetWindow.document ) ;