Fix ace editor not working

v1.18.x
Peter Jaszkowiak 8 years ago
parent 98047be9ce
commit baa2a59f4c

@ -231,4 +231,10 @@
});
});
}
// tell ace to use the right paths when requiring modules
require(['ace/ace'], function (ace) {
ace.config.set('packaged', true);
ace.config.set('basePath', config.relative_path + '/assets/src/modules/ace/');
});
}());

@ -1,6 +1,5 @@
'use strict';
define('admin/appearance/customise', ['admin/settings', 'ace/ace'], function (Settings, ace) {
var Customise = {};

@ -1,7 +1,7 @@
'use strict';
define('admin/settings/email', ['admin/settings', 'ace/ace'], function (ace) {
define('admin/settings/email', ['ace/ace', 'admin/settings'], function (ace) {
var module = {};
var emailEditor;

Loading…
Cancel
Save