Commit 04a3dd37 authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix bug 35154

Asc.editor -> Asc['editor']
parent 4d4735d9
......@@ -501,7 +501,7 @@
*/
ApiWorksheet.prototype.ReplaceCurrentImage = function(sImageUrl, Width, Height){
var oWorksheet = Asc.editor.wb.getWorksheet();
var oWorksheet = Asc['editor'].wb.getWorksheet();
if(oWorksheet && oWorksheet.objectRender && oWorksheet.objectRender.controller){
var oController = oWorksheet.objectRender.controller;
......
......@@ -1908,10 +1908,10 @@ function DrawingObjects() {
_this.showDrawingObjects(true);
};
if(!Asc.editor.ImageLoader.map_image_index[sFrozenImageUrl]){
if(!Asc['editor'].ImageLoader.map_image_index[sFrozenImageUrl]){
aImagesSync.push(sFrozenImageUrl);
}
if(!Asc.editor.ImageLoader.map_image_index[sFrozenImageRotUrl]){
if(!Asc['editor'].ImageLoader.map_image_index[sFrozenImageRotUrl]){
aImagesSync.push(sFrozenImageRotUrl);
}
if(aImagesSync.length > 0)
......
......@@ -488,7 +488,7 @@ function handleInternalChart(drawing, drawingObjectsController, e, x, y, group,
}
var chart_titles = drawing.getAllTitles();
var oApi = editor || Asc.editor;
var oApi = editor || Asc['editor'];
var bIsMobileVersion = oApi && oApi.isMobileVersion;
for(i = 0; i < chart_titles.length; ++i)
{
......
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