diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-01-02 15:55:03 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-01-03 13:04:03 +0300 |
commit | 290af2b60216700e2a8f7d4c3b1e9ddf0a0f2394 (patch) | |
tree | a703eb3f825a7fb82ae5066c7a995fa20366d180 /src/helpers | |
parent | 03bd8b75af204ca8eeef52ee2ae7c4a3062e322e (diff) |
Add more mimetypes for plain text editing
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'src/helpers')
-rw-r--r-- | src/helpers/mime.js | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/src/helpers/mime.js b/src/helpers/mime.js index 778496730..7a3d0d338 100644 --- a/src/helpers/mime.js +++ b/src/helpers/mime.js @@ -27,15 +27,26 @@ const openMimetypesMarkdown = [ const openMimetypesPlainText = [ 'text/plain', 'application/cmd', - 'application/javascript', - 'application/json', - 'application/xml', 'application/x-empty', 'application/x-msdos-program', + 'application/epub+zip', + 'application/javascript', + 'application/json', + 'application/x-perl', 'application/x-php', - 'application/x-pearl', - 'application/x-text', + 'application/x-tex', + 'application/xml', 'application/yaml', + 'text/css', + 'text/csv', + 'text/html', + 'text/x-c', + 'text/x-c++src', + 'text/x-h', + 'text/x-java-source', + 'text/x-ldif', + 'text/x-python', + 'text/x-shellscript', ] const openMimetypes = [...openMimetypesMarkdown, ...openMimetypesPlainText] |