fix for bug 31125: teleporting selection when typing in mail replies.
git-svn-id: svn://10.0.0.236/trunk@65186 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ca7135ef68
commit
a56b1b5779
@ -223,8 +223,12 @@ nsHTMLEditRules::AfterEdit(PRInt32 action, nsIEditor::EDirection aDirection)
|
||||
}
|
||||
|
||||
// replace newlines that are preformatted
|
||||
// MOOSE: This is buttUgly. A better way to
|
||||
// organize the action enum is in order.
|
||||
if ((action == nsEditor::kOpInsertText) ||
|
||||
(action == nsEditor::kOpInsertIMEText) ||
|
||||
(action == nsHTMLEditor::kOpInsertElement) ||
|
||||
(action == nsHTMLEditor::kOpInsertQuotation) ||
|
||||
(action == nsEditor::kOpInsertNode))
|
||||
{
|
||||
res = ReplaceNewlines(mDocChangeRange);
|
||||
|
||||
@ -223,8 +223,12 @@ nsHTMLEditRules::AfterEdit(PRInt32 action, nsIEditor::EDirection aDirection)
|
||||
}
|
||||
|
||||
// replace newlines that are preformatted
|
||||
// MOOSE: This is buttUgly. A better way to
|
||||
// organize the action enum is in order.
|
||||
if ((action == nsEditor::kOpInsertText) ||
|
||||
(action == nsEditor::kOpInsertIMEText) ||
|
||||
(action == nsHTMLEditor::kOpInsertElement) ||
|
||||
(action == nsHTMLEditor::kOpInsertQuotation) ||
|
||||
(action == nsEditor::kOpInsertNode))
|
||||
{
|
||||
res = ReplaceNewlines(mDocChangeRange);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user