Bug 492751 - spell checking disabled when indenting text in HTML composition

p=me r/sr=bienvenu
This commit is contained in:
Ian Neal 2009-08-28 01:55:08 +01:00
parent 15ec048a67
commit 7d91aa93c0

View File

@ -1127,10 +1127,15 @@ mozInlineSpellChecker::SkipSpellCheckForNode(nsIEditor* aEditor,
parentElement->GetTagName(parentTagName);
if (parentTagName.Equals(NS_LITERAL_STRING("blockquote"), nsCaseInsensitiveStringComparator()))
{
nsAutoString quotetype;
parentElement->GetAttribute(NS_LITERAL_STRING("type"), quotetype);
if (quotetype.Equals(NS_LITERAL_STRING("cite"), nsCaseInsensitiveStringComparator()))
{
*checkSpelling = PR_FALSE;
break;
}
}
else if (parentTagName.Equals(NS_LITERAL_STRING("pre"), nsCaseInsensitiveStringComparator()))
{
nsAutoString classname;