Lots of editor feature work: bugs 26286, 34519, 28498, 36998, 37089, 14342. r=sfraser

git-svn-id: svn://10.0.0.236/trunk@68913 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cmanske%netscape.com
2000-05-09 23:03:41 +00:00
parent 63676aff34
commit 6eede096f5
44 changed files with 1064 additions and 635 deletions

View File

@@ -143,11 +143,16 @@ function SetTextfieldFocus(textfield)
{
if (textfield)
{
dump("Selection Start="+textfield.selectionStart+"\n");
dump("Selection End="+textfield.selectionEnd+"\n");
textfield.focus();
//TODO: This is not working -- did Simon checkin? Do we need to change XBL?
textfield.selectionStart = 0;
//textfield.selectionStart = 0;
textfield.setAttribute("selectionStart",0);
//TODO: Simon should change this to support "-1" for "select to end"
textfield.selectionEnd = textfield.value.length;
//textfield.selectionEnd = textfield.value.length;
textfield.setAttrubute("selectionEnd",textfield.value.length);
}
}