Bug 489202 - selection moves to top when html containing meta, link, or style elements is pasted or inserted; r=ehsan

This commit is contained in:
Jonathan Kamens
2011-07-26 13:59:50 -04:00
parent f89e8393da
commit ab84cd30ca
3 changed files with 81 additions and 1 deletions

View File

@@ -649,7 +649,7 @@ nsHTMLEditor::DoInsertHTMLWithContext(const nsAString & aInputString,
{
bDidInsert = PR_TRUE;
insertedContextParent = parent;
lastInsertNode = parent;
lastInsertNode = GetChildAt(parentNode, offsetOfNewNode);
}
}
curNode = parent;