mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-01 01:49:01 +02:00
Fix ace editor not working
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user