Commit 3b1b54ff authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

для svg копируем еще emf, wmf(код перенесен из js на сервер)

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@49986 954022d7-b5bf-4e40-9824-e11837661b57
parent 2ae6e4be
......@@ -2963,17 +2963,7 @@ PasteProcessor.prototype =
var imageElem = aContent.aPastedImages[i];
var src = imageElem.Url;
if(false == (0 == src.indexOf("data:") || 0 == src.indexOf(documentOrigin + this.api.DocumentUrl) || 0 == src.indexOf(this.api.DocumentUrl)))
{
oImagesToDownload[src] = 1;
//для svg надо еще скопировать wmf и emf
var nExtIndex = src.lastIndexOf(".");
if(-1 != nExtIndex && ".svg" == src.substring(nExtIndex))
{
var sStart = src.substring(0, nExtIndex)
oImagesToDownload[sStart + ".wmf"] = 1;
oImagesToDownload[sStart + ".emf"] = 1;
}
}
}
}
var aImagesToDownload = [];
......
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