Skip to content
This repository was archived by the owner on Sep 8, 2020. It is now read-only.

basePath config option #99

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/ui-ace.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ angular.module('ui.ace', [])
*/
var setOptions = function(acee, session, opts) {

// sets the ace base path
if (angular.isDefined(opts.basePath)) {
var basePathConfig = window.ace.require('ace/config');
basePathConfig.set('basePath', opts.basePath);
}

// sets the ace worker path, if running from concatenated
// or minified source
if (angular.isDefined(opts.workerPath)) {
Expand Down