From c37dd8adfa8626dde6e9cd53a4737e6249454a54 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 27 Nov 2019 11:52:48 +0300 Subject: [PATCH] [PE] Fix adding image to placeholder --- apps/presentationeditor/main/app/view/DocumentHolder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/presentationeditor/main/app/view/DocumentHolder.js b/apps/presentationeditor/main/app/view/DocumentHolder.js index 3528e3ec0..3a1d54a27 100644 --- a/apps/presentationeditor/main/app/view/DocumentHolder.js +++ b/apps/presentationeditor/main/app/view/DocumentHolder.js @@ -3416,7 +3416,7 @@ define([ onInsertImage: function(placeholder, obj, x, y) { if (this.api) - (placeholder) ? this.api.asc_addImage() : this.api.ChangeImageFromFile(); + (placeholder) ? this.api.asc_addImage(obj) : this.api.ChangeImageFromFile(); this.fireEvent('editcomplete', this); }, @@ -3429,7 +3429,7 @@ define([ var checkUrl = value.replace(/ /g, ''); if (!_.isEmpty(checkUrl)) { if (placeholder) - me.api.AddImageUrl(checkUrl, obj); + me.api.AddImageUrl(checkUrl, undefined, undefined, obj); else { var props = new Asc.asc_CImgProperty(); props.put_ImageUrl(checkUrl);