diff --git a/editor/base/nsEditorShell.cpp b/editor/base/nsEditorShell.cpp index 073d72cc301e..a6a50f3cffeb 100644 --- a/editor/base/nsEditorShell.cpp +++ b/editor/base/nsEditorShell.cpp @@ -1793,7 +1793,7 @@ nsEditorShell::SaveDocument(PRBool aSaveAs, PRBool aSaveCopy, const PRUnichar* a nsAutoString fileName; nsAutoString promptString; - if (saveAsText) + if (saveAsText && mEditorType == eHTMLTextEditorType) GetBundleString(NS_LITERAL_STRING("ExportToText"), promptString); else GetBundleString(NS_LITERAL_STRING("SaveDocumentAs"), promptString); diff --git a/editor/composer/src/nsEditorShell.cpp b/editor/composer/src/nsEditorShell.cpp index 073d72cc301e..a6a50f3cffeb 100644 --- a/editor/composer/src/nsEditorShell.cpp +++ b/editor/composer/src/nsEditorShell.cpp @@ -1793,7 +1793,7 @@ nsEditorShell::SaveDocument(PRBool aSaveAs, PRBool aSaveCopy, const PRUnichar* a nsAutoString fileName; nsAutoString promptString; - if (saveAsText) + if (saveAsText && mEditorType == eHTMLTextEditorType) GetBundleString(NS_LITERAL_STRING("ExportToText"), promptString); else GetBundleString(NS_LITERAL_STRING("SaveDocumentAs"), promptString);