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:
parent
94647c4887
commit
634b095177
|
@ -999,7 +999,7 @@ Wiki.prototype.editor_key_pressed = function ( editor, event ) {
|
||||||
}
|
}
|
||||||
event.stop();
|
event.stop();
|
||||||
// IE: hitting backspace while making a link shouldn't end the link
|
// 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();
|
var range = editor.document.selection.createRange();
|
||||||
range.moveStart( "character", -1 );
|
range.moveStart( "character", -1 );
|
||||||
range.text = "";
|
range.text = "";
|
||||||
|
|
Reference in New Issue