Hello,
i tried to set local cdn for exporting data to excel/pdf and it seems, that it requires to set both webix.codebase and webix.cdn helpers:
there is function, that extract codebase folder from SCRIPT tag:
for “/static/webix/webix_debug.js”
webix.codebase = “/static/webix/”
in webix.toExcel we have:
webix.require(webix.cdn + “/extras/xlsx.core.styles.min.js”, function(){
in webix.require function there is fullpath var:
var fullpath = module;
if (!module.toString().match(/^([a-z]+\:)*\/\//i))
fullpath = webix.codebase + module;
and this fullpath is used to obtain module f.i.: /extras/xlsx.core.styles.min.js with pattern: webix.codebase + webix.cdn + module,
so for webix.cdn =="" it gives “http://localhost/static/webix//extras/xlsx.core.styles.min.js”
in webix.toPDF webix.require loads script with same pattern:
webix.require(webix.cdn + “/extras/pdfjs.js”, function(){
and then uses fullpath as above
but ttf font if loaded without adding webix.codebase to path:
pdfjs.load(webix.cdn + “/extras/”+options.fontName+".ttf", function(err, buf){ and it gives error if webix.cdn is not set.
so for now webix.codebase and webix.cdn could be set as follows:
webix.codebase="";
webix.cdn="/static/webix"
but it breaks webix.UploadDriver
swfobject.embedSWF(webix.codebase+"/legacy/uploader.swf"
To sum up: for local cdn.extras something is broken