Commit ba0ec916 authored by Sergey Luzyanin's avatar Sergey Luzyanin

Merge branch 'develop' of https://github.com/ONLYOFFICE/sdkjs into develop

parents 0c0e1cf4 d1ad8cb6
......@@ -7629,3 +7629,22 @@ window["Asc"]["spreadsheet_api"].prototype.openDocument = function(sData) {
}, 5);
};
window["AscCommon"].getFullImageSrc2 = function (src) {
var start = src.slice(0, 6);
if (0 === start.indexOf('theme') && editor.ThemeLoader){
return editor.ThemeLoader.ThemesUrlAbs + src;
}
if (0 !== start.indexOf('http:') && 0 !== start.indexOf('data:') && 0 !== start.indexOf('https:') &&
0 !== start.indexOf('file:') && 0 !== start.indexOf('ftp:')){
var srcFull = AscCommon.g_oDocumentUrls.getImageUrl(src);
if(srcFull){
window["native"]["loadUrlImage"](srcFull, src);
return srcFull;
}
}
return src;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment