Skip to content

Commit 1fe621a

Browse files
authored
Add support for Microsoft Excel template with macros (.xltm) (#714)
1 parent 643ef78 commit 1fe621a

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

core.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ function getFileTypeFromMimeType(mimeType) {
5959
ext: 'xltx',
6060
mime: 'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
6161
};
62+
case 'application/vnd.ms-excel.template.macroEnabled':
63+
return {
64+
ext: 'xltm',
65+
mime: 'application/vnd.ms-excel.template.macroenabled.12',
66+
};
6267
case 'application/vnd.openxmlformats-officedocument.wordprocessingml.document':
6368
return {
6469
ext: 'docx',

fixture/fixture.xltm

8.65 KB
Binary file not shown.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@
222222
"lz4",
223223
"potx",
224224
"xltx",
225-
"dotx"
225+
"dotx",
226+
"xltm"
226227
],
227228
"dependencies": {
228229
"@tokenizer/inflate": "^0.2.6",

readme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,7 @@ abortController.abort(); // Abort file-type reading from the Blob stream.
564564
- [`wv`](https://en.wikipedia.org/wiki/WavPack) - WavPack
565565
- [`xcf`](https://en.wikipedia.org/wiki/XCF_(file_format)) - eXperimental Computing Facility
566566
- [`xlsx`](https://en.wikipedia.org/wiki/Office_Open_XML) - Microsoft Excel document
567+
- [`xltm`](https://en.wikipedia.org/wiki/List_of_Microsoft_Office_filename_extensions) - Microsoft Excel macro-enabled template
567568
- [`xltx`](https://en.wikipedia.org/wiki/List_of_Microsoft_Office_filename_extensions) - Microsoft Excel template
568569
- [`xm`](https://wiki.openmpt.org/Manual:_Module_formats#The_FastTracker_2_format_.28.xm.29) - Audio module format: FastTracker 2
569570
- [`xml`](https://en.wikipedia.org/wiki/XML) - eXtensible Markup Language

supported.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ export const extensions = [
159159
'potx',
160160
'xltx',
161161
'dotx',
162+
'xltm',
162163
];
163164

164165
export const mimeTypes = [
@@ -317,4 +318,5 @@ export const mimeTypes = [
317318
'application/vnd.openxmlformats-officedocument.presentationml.template',
318319
'application/vnd.openxmlformats-officedocument.spreadsheetml.template',
319320
'application/vnd.openxmlformats-officedocument.wordprocessingml.template',
321+
'application/vnd.ms-excel.template.macroenabled.12',
320322
];

0 commit comments

Comments
 (0)