witten
/
luminotes
Archived
1
0
Fork 0

When using custom backspace code in IE, don't require that we're in a

link. This means that if you're at the end of the link but not in link
mode, the custom backspace code is still used.
This commit is contained in:
Dan Helfman 2008-06-29 15:25:09 -07:00
parent 94647c4887
commit 634b095177
1 changed files with 1 additions and 1 deletions

View File

@ -999,7 +999,7 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) {
}
event.stop();
// IE: hitting backspace while making a link shouldn't end the link
} else if ( code == 8 && editor.document.selection && editor.state_enabled( "a" ) ) {
} else if ( code == 8 && editor.document.selection ) {
var range = editor.document.selection.createRange();
range.moveStart( "character", -1 );
range.text = "";