Repository navigation
Expand file tree
/
Copy pathbootstrap.js
More file actions
106 lines (100 loc) · 2.92 KB
/
Copy pathbootstrap.js
File metadata and controls
106 lines (100 loc) · 2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
// prevent no console...
if (window.console === undefined || window.console === null) {
window.console = {};
}
if (console.log === undefined || console.log === null) {
console.log = function(){};
}
// check if an extension fo require exists, creates otherwise
if (window.kc_requireConf === undefined || window.kc_requireConf === null) {
window.kc_requireConf = {}
}
kc_requireConf.baseUrl = "/_browser/aloha/src/lib";
kc_requireConf.waitSeconds = 15;
kc_requireConf.locale = "fr-fr";
if (kc_requireConf.paths === undefined || kc_requireConf.paths === null) {
window.kc_requireConf.paths = {}
}
kc_requireConf.paths.karacos = "/_browser/karacos-ui";
kc_requireConf.paths.fragment = "/fragment";
function startKaraCos() {
(function(jQuery){
var kQuery = jQuery.noConflict( true );
window.jQuery = window.$ = kQuery;
jQuery(function() {
window.Aloha = window.Aloha || {};
window.kcQuery = window.kQuery = jQuery;
Aloha.settings = { baseUrl: "/_browser/aloha/src/lib",
locale: "fr",
jQuery: jQuery,
floatingmenu: {
width: 430
},
bundles: {
custom: "/_browser/karacos-ui/lib/ae-bundle"
},
// repositories: {
//// linklist: {data: []}
// },
plugins: {
load: [ 'common/format',
'common/link',
'common/image',
'common/highlighteditables',
'common/paste',
'custom/karacos-repository'
,'extra/browser'
,'extra/imagebrowser'
,'extra/linkbrowser'
],
format: {
editables: {
'[property*="title"]': [],
'[property*="description"]': []
}
},
link: {
editables: {
'[property*="title"]': [],
'[property*="description"]': []
}
},
image: {
'max_width': '50px',
'max_height': '50px',
editables: {
'[property*="title"]':undefined,
'[property*="description"]': undefined
}
},
draganddropfiles: {
upload : { config: { callback: function dropFileCallback(responseString,fileItem) {
try {
var result = jQuery.parseJSON(responseString);
if (result.success)
return result.data;
} catch(e) {
return false;
}
} // function callback
} // config
}, // upload
editables: {
'[property*="description"]': {},
'[property*="title"]': {},
'[typeof*="Domain"] [property*="content"]': {}
}
} // draganddropfiles
} //plugins
};
require(["jquery","karacos/main"],function(){
console.log("loaded karacos/main");
});
});
})(window.jQuery);
}
if (window.onload === null) {
window.onload = startKaraCos;
} else {
startKaraCos();
}