Commit cb7db39c authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

+ _getFullImageSrc

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47719 954022d7-b5bf-4e40-9824-e11837661b57
parent ef3ac03c
......@@ -39,16 +39,16 @@ function convertFormula(formula, ws) {
return range;
}
function getFullImageSrc(src) {
/*var start = src.substring(0, 6);
function _getFullImageSrc(src) {
var start = src.substring(0, 6);
if ( 0 != src.indexOf("http:") && 0 != src.indexOf("data:") && 0 != src.indexOf("https:") && 0 != src.indexOf("ftp:") && 0 != src.indexOf("file:") ) {
var editor = window["Asc"]["editor"];
if ( 0 == src.indexOf(editor.DocumentUrl) )
if ( 0 == src.indexOf(g_sResourceServiceLocalUrl + editor.documentId) )
return src;
return editor.DocumentUrl + "media/" + src;
return g_sResourceServiceLocalUrl + editor.documentId + "/media/" + src;
}
else
return src;*/
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