witten
/
luminotes
Archived
1
0
Fork 0

Ending a link in IE no longer moves the cursor to the end of the line.

This commit is contained in:
Dan Helfman 2007-07-18 21:51:59 +00:00
parent dcc42cf808
commit 8df8036255
1 changed files with 1 additions and 1 deletions

View File

@ -371,7 +371,7 @@ Editor.prototype.end_link = function () {
// by appending a temporary span, selecting it, and then immediately removing it
var span = this.document.createElement( "span" );
span.innerHTML = " ";
range.parentElement().parentNode.appendChild( span );
range.parentElement().appendChild( span );
range.moveToElementText( span );
range.select();
range.pasteHTML( "" );