From a56b1b57794d84b4ffe0cbda1de47d92c3aa3d55 Mon Sep 17 00:00:00 2001 From: "jfrancis%netscape.com" Date: Tue, 4 Apr 2000 13:06:48 +0000 Subject: [PATCH] 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 --- mozilla/editor/base/nsHTMLEditRules.cpp | 4 ++++ mozilla/editor/libeditor/html/nsHTMLEditRules.cpp | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/mozilla/editor/base/nsHTMLEditRules.cpp b/mozilla/editor/base/nsHTMLEditRules.cpp index c79b92fe7b4..3075ab062c6 100644 --- a/mozilla/editor/base/nsHTMLEditRules.cpp +++ b/mozilla/editor/base/nsHTMLEditRules.cpp @@ -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); diff --git a/mozilla/editor/libeditor/html/nsHTMLEditRules.cpp b/mozilla/editor/libeditor/html/nsHTMLEditRules.cpp index c79b92fe7b4..3075ab062c6 100644 --- a/mozilla/editor/libeditor/html/nsHTMLEditRules.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLEditRules.cpp @@ -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);