fixes 88109: caret jumps down when typing after inserting table. One liner to properly set selection after table insertion. r=fm;sr=kin

This commit is contained in:
jfrancis%netscape.com 2001-09-14 21:12:35 +00:00
parent 141ff38c0f
commit e317c80316
2 changed files with 2 additions and 0 deletions

View File

@ -1801,6 +1801,7 @@ nsHTMLEditor::InsertElementAtSelection(nsIDOMElement* aElement, PRBool aDeleteSe
nsCOMPtr<nsIDOMNode> brNode;
res = CreateBR(parentSelectedNode, offsetForInsert+1, address_of(brNode));
if (NS_FAILED(res)) return res;
selection->Collapse(parentSelectedNode, offsetForInsert+1);
}
}
}

View File

@ -1801,6 +1801,7 @@ nsHTMLEditor::InsertElementAtSelection(nsIDOMElement* aElement, PRBool aDeleteSe
nsCOMPtr<nsIDOMNode> brNode;
res = CreateBR(parentSelectedNode, offsetForInsert+1, address_of(brNode));
if (NS_FAILED(res)) return res;
selection->Collapse(parentSelectedNode, offsetForInsert+1);
}
}
}