From 0ae765ce0280969d7283bd81be7896ac2faf099c Mon Sep 17 00:00:00 2001 From: edward Date: Wed, 6 Sep 2017 12:27:07 +0800 Subject: [PATCH] Pman.Gnumeric.js --- Pman.Gnumeric.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Pman.Gnumeric.js b/Pman.Gnumeric.js index 5a309d2b..96441e45 100644 --- a/Pman.Gnumeric.js +++ b/Pman.Gnumeric.js @@ -1209,9 +1209,12 @@ Roo.extend(Pman.Gnumeric, Roo.util.Observable, { soi.setAttribute('crop-left','0.000000'); soi.setAttribute('crop-right','0.000000'); // ...... < / Content> + + var name = 'Image' + Math.random().toString(36).substring(10); var content = this.doc.createElement('Content'); - content.setAttribute('image-type', type ? 'jpeg' : type); - //alert(imgsrc); + content.setAttribute('image-type', type ? type : 'jpeg'); + + content.setAttribute('name', ); content.setAttribute('size-bytes',data.length); content.textContent = data; -- 2.39.2