Updates ACE Editor Directive to load in the additional library that enables simple auto-complete

This commit is contained in:
Warren Buckley
2017-01-20 15:21:17 +00:00
parent 6fb3c91d3f
commit f0bdb1a2e9

View File

@@ -125,7 +125,7 @@
function link(scope, el, attr, ngModel) {
// Load in ace library
assetsService.loadJs('lib/ace-builds/src-min-noconflict/ace.js').then(function () {
assetsService.load(['lib/ace-builds/src-min-noconflict/ace.js', 'lib/ace-builds/src-min-noconflict/ext-language_tools.js']).then(function () {
if (angular.isUndefined(window.ace)) {
throw new Error('ui-ace need ace to work... (o rly?)');
} else {