[feature] Add mhtml for bug 61381

This commit is contained in:
Sergey Konovalov
2023-02-28 16:17:18 +03:00
parent d886c510e7
commit 897a3f785f
2 changed files with 2 additions and 1 deletions

View File

@ -87,7 +87,7 @@
"favIconUrlSlide" : "/web-apps/apps/presentationeditor/main/resources/img/favicon.ico",
"fileInfoBlockList" : ["FileUrl"],
"pdfView": ["pdf", "djvu", "xps", "oxps"],
"wordView": ["doc", "dotx", "dotm", "dot", "fodt", "ott", "rtf", "mht", "html", "htm", "xml", "epub", "fb2"],
"wordView": ["doc", "dotx", "dotm", "dot", "fodt", "ott", "rtf", "mht", "mhtml", "html", "htm", "xml", "epub", "fb2"],
"wordEdit": ["docx", "docm", "docxf", "oform", "odt", "txt"],
"cellView": ["xls", "xlsb", "xltx", "xltm", "xlt", "fods", "ots"],
"cellEdit": ["xlsx", "xlsm", "ods", "csv"],

View File

@ -213,6 +213,7 @@ exports.getFormatFromString = function(ext) {
case 'html':
return constants.AVS_OFFICESTUDIO_FILE_DOCUMENT_HTML;
case 'mht':
case 'mhtml':
return constants.AVS_OFFICESTUDIO_FILE_DOCUMENT_MHT;
case 'epub':
return constants.AVS_OFFICESTUDIO_FILE_DOCUMENT_EPUB;