From 117edd04eb51f6d37cb2006b9498da796d4e5e39 Mon Sep 17 00:00:00 2001 From: "jfrancis%netscape.com" Date: Sat, 3 Jul 1999 05:13:30 +0000 Subject: [PATCH] turning off ill fated coercion of selection for plaintext editing. I'll turn this back on when I know how to correctly detect when it's needed. git-svn-id: svn://10.0.0.236/trunk@38247 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/base/nsTextEditRules.cpp | 11 ++++++----- mozilla/editor/libeditor/text/nsTextEditRules.cpp | 11 ++++++----- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/mozilla/editor/base/nsTextEditRules.cpp b/mozilla/editor/base/nsTextEditRules.cpp index 9f97709f0b7..0a5cff344e7 100644 --- a/mozilla/editor/base/nsTextEditRules.cpp +++ b/mozilla/editor/base/nsTextEditRules.cpp @@ -103,11 +103,12 @@ nsTextEditRules::WillDoAction(nsIDOMSelection *aSelection, // no matter what we are doing, sanity check the selection and force it // to be inside the PRE element - if (mFlags&TEXT_EDITOR_FLAG_PLAINTEXT) - { - nsresult res = PinSelectionInPRE(aSelection); - if (NS_FAILED(res)) return res; - } +// XXX - don't know the right way to do this test: +// if ( this is the kind of editor that has a mandatory PRE tag ) +// { +// nsresult res = PinSelectionInPRE(aSelection); +// if (NS_FAILED(res)) return res; +// } // my kingdom for dynamic cast nsTextRulesInfo *info = NS_STATIC_CAST(nsTextRulesInfo*, aInfo); diff --git a/mozilla/editor/libeditor/text/nsTextEditRules.cpp b/mozilla/editor/libeditor/text/nsTextEditRules.cpp index 9f97709f0b7..0a5cff344e7 100644 --- a/mozilla/editor/libeditor/text/nsTextEditRules.cpp +++ b/mozilla/editor/libeditor/text/nsTextEditRules.cpp @@ -103,11 +103,12 @@ nsTextEditRules::WillDoAction(nsIDOMSelection *aSelection, // no matter what we are doing, sanity check the selection and force it // to be inside the PRE element - if (mFlags&TEXT_EDITOR_FLAG_PLAINTEXT) - { - nsresult res = PinSelectionInPRE(aSelection); - if (NS_FAILED(res)) return res; - } +// XXX - don't know the right way to do this test: +// if ( this is the kind of editor that has a mandatory PRE tag ) +// { +// nsresult res = PinSelectionInPRE(aSelection); +// if (NS_FAILED(res)) return res; +// } // my kingdom for dynamic cast nsTextRulesInfo *info = NS_STATIC_CAST(nsTextRulesInfo*, aInfo);