Change Save File APIs in layout and editor to eliminate the specific
references to text and html and make them more general (take a mime type). In the editor, prettyprint all output if editor.prettyprint_html is set. git-svn-id: svn://10.0.0.236/trunk@67155 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1510,7 +1510,9 @@ nsEditorShell::SaveDocument(PRBool saveAs, PRBool saveCopy, PRBool *_retval)
|
||||
// TODO: Get the file type (from the extension?) the user set for the file
|
||||
// How do we do this in an XP way???
|
||||
// For now, just save as HTML type
|
||||
res = editor->SaveFile(&docFileSpec, replacing, saveCopy, nsIDiskDocument::eSaveFileHTML);
|
||||
nsString format;
|
||||
format.AssignWithConversion("text/html");
|
||||
res = editor->SaveFile(&docFileSpec, replacing, saveCopy, format);
|
||||
if (NS_FAILED(res))
|
||||
{
|
||||
nsAutoString saveDocStr, failedStr;
|
||||
|
||||
Reference in New Issue
Block a user