diff options
-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; |