diff --git a/editor/base/nsTextEditRules.cpp b/editor/base/nsTextEditRules.cpp index 9f97709f0b78..0a5cff344e7e 100644 --- a/editor/base/nsTextEditRules.cpp +++ b/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/editor/libeditor/text/nsTextEditRules.cpp b/editor/libeditor/text/nsTextEditRules.cpp index 9f97709f0b78..0a5cff344e7e 100644 --- a/editor/libeditor/text/nsTextEditRules.cpp +++ b/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);