Call the new presshell->SetCaretEnabled() call to show the caret when
editing. git-svn-id: svn://10.0.0.236/trunk@25956 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
d2d281780c
commit
e51ed48fbd
@ -403,6 +403,8 @@ nsEditor::Init(nsIDOMDocument *aDoc, nsIPresShell* aPresShell)
|
||||
caret->SetCaretReadOnly(PR_FALSE);
|
||||
}
|
||||
|
||||
mPresShell->SetCaretEnabled(PR_TRUE);
|
||||
|
||||
NS_POSTCONDITION(mDoc && mPresShell, "bad state");
|
||||
|
||||
return NS_OK;
|
||||
|
||||
@ -403,6 +403,8 @@ nsEditor::Init(nsIDOMDocument *aDoc, nsIPresShell* aPresShell)
|
||||
caret->SetCaretReadOnly(PR_FALSE);
|
||||
}
|
||||
|
||||
mPresShell->SetCaretEnabled(PR_TRUE);
|
||||
|
||||
NS_POSTCONDITION(mDoc && mPresShell, "bad state");
|
||||
|
||||
return NS_OK;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user