mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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.
This commit is contained in:
parent
f254f8b0e1
commit
dcb4b5045a
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user