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

при вставке из бинарника создается глобальная переменная editor

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@55673 954022d7-b5bf-4e40-9824-e11837661b57
parent a06f345e
......@@ -2046,11 +2046,17 @@
var oTempDrawingDocument = new CDrawingDocument();
var newCDocument = new CDocument(oTempDrawingDocument);
oTempDrawingDocument.m_oLogicDocument = newCDocument;
var oOldEditor = undefined;
if ("undefined" != typeof editor)
oOldEditor = editor;
//создается глобальная переменная
editor = { isDocumentEditor: true, WordControl: { m_oLogicDocument: newCDocument } };
var openParams = { checkFileSize: false, charCount: 0, parCount: 0 };
History.TurnOff();
var oBinaryFileReader = new BinaryFileReader(newCDocument, openParams);
var oRes = oBinaryFileReader.ReadFromString(sBase64);
History.TurnOn();
editor = oOldEditor;
return oBinaryFileReader.oReadResult;
//TODO ПРОСМОТРЕТЬ ВСЕ ЗАКОММЕНТИРОВАННЫЕ ОБЛАСТИ!!!!
......
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