diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-08-30 15:02:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-30 15:02:23 +0300 |
commit | 408267decbb51262aa91ff15e805073ca0501f9c (patch) | |
tree | d4b041a0e1e2e2c48d312f5c811c14fd30022e10 | |
parent | c8e1ee620440436928f47f86c03444dd315a2d5f (diff) | |
parent | 5a4449943456d038cbf5be7610089b79ecb4b186 (diff) |
Merge pull request #8 from nextcloud/backport-7-json-filesv10.0.6RC1v10.0.6v10.0.5RC2v10.0.5RC1v10.0.5v10.0.4RC1v10.0.4v10.0.3RC1v10.0.3v10.0.2v10.0.1RC1v10.0.1stable10
Open JSON files with the text editor
-rw-r--r-- | js/editor.js | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/js/editor.js b/js/editor.js index 27682ba..a9c19d7 100644 --- a/js/editor.js +++ b/js/editor.js @@ -243,16 +243,17 @@ var Files_Texteditor = { * Registers the file actions */ registerFileActions: function() { - var mimes = Array( - 'text', - 'application/xml', - 'application/x-empty', - 'application/x-php', - 'application/javascript', - 'application/x-pearl', - 'application/x-text', - 'application/yaml' - ); + var mimes = [ + 'text', + 'application/javascript', + 'application/json', + 'application/xml', + 'application/x-empty', + 'application/x-php', + 'application/x-pearl', + 'application/x-text', + 'application/yaml' + ]; _self = this; |