Commit 0e286e05 authored by Oleg Korshul's avatar Oleg Korshul

build xlsx files (zip).

parent 1ea578d4
...@@ -448,7 +448,7 @@ var native_renderer = null; ...@@ -448,7 +448,7 @@ var native_renderer = null;
var Api = null; var Api = null;
var _api = null; var _api = null;
function NativeOpenFileData(data, version) function NativeOpenFileData(data, version, xlsx_file_path)
{ {
window.NATIVE_DOCUMENT_TYPE = window.native.GetEditorType(); window.NATIVE_DOCUMENT_TYPE = window.native.GetEditorType();
...@@ -460,7 +460,7 @@ function NativeOpenFileData(data, version) ...@@ -460,7 +460,7 @@ function NativeOpenFileData(data, version)
else else
{ {
_api = new window["Asc"]["spreadsheet_api"]({}); _api = new window["Asc"]["spreadsheet_api"]({});
_api.asc_nativeOpenFile(data, version); _api.asc_nativeOpenFile(data, version, undefined, xlsx_file_path);
} }
Api = _api; Api = _api;
} }
......
...@@ -206,9 +206,11 @@ ...@@ -206,9 +206,11 @@
JSZipObjectWrapper.prototype.async = function(type) { JSZipObjectWrapper.prototype.async = function(type) {
if (window["native"]) { if (window["native"]) {
var t = this;
return new Promise(function(resolve, reject) { return new Promise(function(resolve, reject) {
var ret = window["native"]["ZipFileAsString"](type); var ret = window["native"]["ZipFileAsString"](t.data);
if (null != ret) if (null != ret)
{ {
......
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