[fckeditor] fix fckeditor relative url: use baseuri() stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 07 Apr 2011 18:10:07 +0200
branchstable
changeset 7199 589801acf08e
parent 7193 7eaef037ea9d
child 7200 81fd6e40a6a8
[fckeditor] fix fckeditor relative url: use baseuri()
web/data/cubicweb.ajax.js
--- a/web/data/cubicweb.ajax.js	Wed Apr 06 23:23:48 2011 +0200
+++ b/web/data/cubicweb.ajax.js	Thu Apr 07 18:10:07 2011 +0200
@@ -501,7 +501,7 @@
                 var fck = new FCKeditor(this.id);
                 fck.Config['CustomConfigurationsPath'] = fckconfigpath;
                 fck.Config['DefaultLanguage'] = fcklang;
-                fck.BasePath = "fckeditor/";
+                fck.BasePath = baseuri() + "fckeditor/";
                 fck.ReplaceTextarea();
             } else {
                 cw.log('fckeditor could not be found.');