我想将 aloha.js 文件移出 lib 文件夹。由于这会破坏路径配置,因此我想更改 Aloha.settings 中的 baseUrl:
(function (window, undefined) {
if (window.Aloha === undefined || window.Aloha === null) {
window.Aloha = {};
}
window.Aloha.settings = {
baseUrl: '/src/lib/',
plugins: {
load: ['common/ui', ' common/format', 'common/image', 'extra/ribbon', 'custom/color', 'custom/imageUpload']
}
};
})(window);
baseUrl 设置为 /src/lib/,这是 aloha.js 文件最初所在的位置,因此所有路径都应从中计算。
但是现在我收到以下错误:
0x800a01b6 - JavaScript runtime error: Object doesn't support property or method 'extendObjects'
并且没有加载任何文件。有任何想法吗?
问候,斯特凡