Commit b67a86a3 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

добавил добавление шрифтов при вставке

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@52198 954022d7-b5bf-4e40-9824-e11837661b57
parent dde17309
...@@ -1573,8 +1573,19 @@ ...@@ -1573,8 +1573,19 @@
if(pasteData.Drawings && pasteData.Drawings.length) if(pasteData.Drawings && pasteData.Drawings.length)
t._insertImagesFromBinary(worksheet, pasteData) t._insertImagesFromBinary(worksheet, pasteData)
else else
worksheet.setSelectionInfo('paste',pasteData,false,"binary"); {
var newFonts = [];
pasteData.generateFontMap(newFonts);
var newArrFonts = [];
var index = 0;
for(var i in newFonts)
{
newArrFonts[index] = [];
newArrFonts[index][0] = i;
index++;
};
worksheet._loadFonts( newArrFonts, function() {worksheet.setSelectionInfo('paste',pasteData,false,"binary")});
}
window.GlobalPasteFlag = false; window.GlobalPasteFlag = false;
window.GlobalPasteFlagCounter = 0; window.GlobalPasteFlagCounter = 0;
return; return;
......
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