Commit c461a4a9 authored by Oleg.Korshul's avatar Oleg.Korshul

on_editor_native_message

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@66928 954022d7-b5bf-4e40-9824-e11837661b57
parent b20e1813
......@@ -207,4 +207,17 @@ window["DesktopOfflineAppDocumentAddImageEnd"] = function(url)
var _url = window["AscDesktopEditor"]["LocalFileGetImageUrl"](url);
ws.objectRender.addImageDrawingObject(g_oDocumentUrls.getImageUrl(_url) , null);
}
};
window["window.on_editor_native_message"] = function(sCommand, sParam)
{
if (!window["Asc"]["editor"])
return;
if (sCommand == "save")
window["Asc"]["editor"].asc_Save();
else if (sCommand == "saveAs")
window["Asc"]["editor"].asc_Save(false, true);
else if (sCommand == "print")
window["Asc"]["editor"].asc_Print();
};
\ No newline at end of file
......@@ -174,3 +174,16 @@ window["DesktopOfflineAppDocumentAddImageEnd"] = function(url)
var _url = window["AscDesktopEditor"]["LocalFileGetImageUrl"](url);
editor.AddImageUrlAction(g_oDocumentUrls.getImageUrl(_url));
};
window["window.on_editor_native_message"] = function(sCommand, sParam)
{
if (!window.editor)
return;
if (sCommand == "save")
editor.asc_Save();
else if (sCommand == "saveAs")
editor.asc_Save(false, true);
else if (sCommand == "print")
editor.asc_Print();
};
......@@ -190,4 +190,17 @@ window["DesktopOfflineAppDocumentAddImageEnd"] = function(url)
return;
var _url = window["AscDesktopEditor"]["LocalFileGetImageUrl"](url);
editor.AddImageUrlAction(g_oDocumentUrls.getImageUrl(_url));
};
window["window.on_editor_native_message"] = function(sCommand, sParam)
{
if (!window.editor)
return;
if (sCommand == "save")
editor.asc_Save();
else if (sCommand == "saveAs")
editor.asc_Save(false, true);
else if (sCommand == "print")
editor.asc_Print();
};
\ No newline at end of file
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