我想将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'并且没有加载任何文件。有什么想法吗?
向你致敬,斯特凡
发布于 2013-06-19 23:33:08
编辑: Aloha向上转义一个目录。所以当你这样做的时候
baseUrl: '/src/lib/',对于插件,它是:
'/src/lib/../',也许这会有所帮助;)
我认为显示此错误是因为aloha正在运行。jQuery实例可能会有问题,您是否加载了1.7.2以外的其他jquery?
https://stackoverflow.com/questions/13864554
复制相似问题