equal
deleted
inserted
replaced
6 disk_cache : true, |
6 disk_cache : true, |
7 page_name : 'tiny_mce_gzip.php', |
7 page_name : 'tiny_mce_gzip.php', |
8 debug : false, |
8 debug : false, |
9 suffix : '' |
9 suffix : '' |
10 }, |
10 }, |
11 |
11 |
12 init : function(s, cb, sc) { |
12 init : function(s, cb, sc) { |
13 var t = this, n, i, nl = document.getElementsByTagName('script'); |
13 var t = this, n, i, nl = document.getElementsByTagName('script'); |
14 |
14 |
15 for (n in s) |
15 for (n in s) |
16 t.settings[n] = s[n]; |
16 t.settings[n] = s[n]; |
17 |
17 |
18 s = t.settings; |
18 s = t.settings; |
19 |
19 |
20 for (i=0; i<nl.length; i++) { |
20 t.baseURL = scriptPath + '/includes/clientside/tinymce'; |
21 n = nl[i]; |
|
22 |
|
23 if (n.src && n.src.indexOf('tiny_mce') != -1) |
|
24 t.baseURL = n.src.substring(0, n.src.lastIndexOf('/')); |
|
25 } |
|
26 |
21 |
27 if (!t.coreLoaded) |
22 if (!t.coreLoaded) |
28 t.loadScripts(1, s.themes, s.plugins, s.languages, cb, sc); |
23 t.loadScripts(1, s.themes, s.plugins, s.languages, cb, sc); |
29 }, |
24 }, |
30 |
25 |