diff --git a/ide/ui/ide-orion/src/main/resources/ide-orion/editor.html b/ide/ui/ide-orion/src/main/resources/ide-orion/editor.html index a62619cba0b..bca0fae24cd 100644 --- a/ide/ui/ide-orion/src/main/resources/ide-orion/editor.html +++ b/ide/ui/ide-orion/src/main/resources/ide-orion/editor.html @@ -101,6 +101,8 @@ return 'application/json'; } else if (fileName.endsWith('.command')) { return 'application/json'; + } else if (fileName.endsWith('.xsjs')) { + return 'application/javascript'; } return 'plain/text'; } diff --git a/ide/ui/ide-preview/src/main/resources/ide-preview/preview.js b/ide/ui/ide-preview/src/main/resources/ide-preview/preview.js index 3f69dfa02ca..02cd0be3feb 100644 --- a/ide/ui/ide-preview/src/main/resources/ide-preview/preview.js +++ b/ide/ui/ide-preview/src/main/resources/ide-preview/preview.js @@ -49,6 +49,9 @@ angular.module('preview', []) case 'js': url += '/js'; break; + case 'xsjs': + url += '/xsc'; + break; case 'md': url += '/wiki'; break;