173953: Fix plaintext quoting. r=ducarroz sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@132112 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1810,6 +1810,13 @@ nsHTMLEditor::InsertAsCitedQuotation(const nsAString & aQuotedText,
|
||||
const nsAString & aCharset,
|
||||
nsIDOMNode **aNodeInserted)
|
||||
{
|
||||
// Don't let anyone insert html into a "plaintext" editor:
|
||||
if (mFlags & eEditorPlaintextMask)
|
||||
{
|
||||
NS_ASSERTION(!aInsertHTML, "InsertAsCitedQuotation: trying to insert html into plaintext editor");
|
||||
return InsertAsPlaintextQuotation(aQuotedText, PR_TRUE, aNodeInserted);
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIDOMNode> newNode;
|
||||
nsresult res = NS_OK;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user