Commit 9cdf9b23 authored by Alexey.Musinov's avatar Alexey.Musinov

fix for ios

parent 02f36768
...@@ -631,6 +631,16 @@ ...@@ -631,6 +631,16 @@
return this; return this;
}; };
DrawingContext.prototype.AddClipRect = function () {
return this;
};
DrawingContext.prototype.RemoveClipRect = function (x, y, w, h) {
return this;
};
DrawingContext.prototype.save = function () { DrawingContext.prototype.save = function () {
this.nctx["PD_Save"](); this.nctx["PD_Save"]();
return this; return this;
......
...@@ -488,19 +488,22 @@ ...@@ -488,19 +488,22 @@
if (window['IS_NATIVE_EDITOR']) if (window['IS_NATIVE_EDITOR'])
{ {
var result = window["native"]["openFileCommand"](sFileUrl, changesUrl, Signature); var stream = window["native"]["openFileCommand"](sFileUrl, changesUrl, Signature);
//получаем url к папке с файлом
var url; var url;
var nIndex = sFileUrl.lastIndexOf("/"); var nIndex = sFileUrl.lastIndexOf("/");
url = (-1 !== nIndex) ? sFileUrl.substring(0, nIndex + 1) : sFileUrl; url = (-1 !== nIndex) ? sFileUrl.substring(0, nIndex + 1) : sFileUrl;
if (0 < result.length)
{ if (stream) {
oResult.bSerFormat = Signature === result.substring(0, Signature.length); oResult.bSerFormat = checkStreamSignature(stream, Signature);
oResult.data = result;
oResult.url = url; if (oResult.bSerFormat) {
oResult.data = stream;
} else {
oResult.data = stream;
} }
else } else {
{
bError = true; bError = true;
} }
......
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