Commit dd7b7d6d authored by Alexey.Musinov's avatar Alexey.Musinov

insert images in collaboration mode

parent 8f1d24a3
...@@ -6285,7 +6285,7 @@ window["native"]["offline_apply_event"] = function(type,params) { ...@@ -6285,7 +6285,7 @@ window["native"]["offline_apply_event"] = function(type,params) {
break; break;
} }
case 9 : // ASC_MENU_EVENT_TYPE_IMAGE case 9: // ASC_MENU_EVENT_TYPE_IMAGE
{ {
var ws = _api.wb.getWorksheet(); var ws = _api.wb.getWorksheet();
if (ws && ws.objectRender && ws.objectRender.controller) { if (ws && ws.objectRender && ws.objectRender.controller) {
...@@ -6440,6 +6440,13 @@ window["native"]["offline_apply_event"] = function(type,params) { ...@@ -6440,6 +6440,13 @@ window["native"]["offline_apply_event"] = function(type,params) {
break; break;
} }
case 12: // ASC_MENU_EVENT_TYPE_TABLESTYLES
{
var wb = _api.wb;
wb.getTablePictures();
break;
}
case 52: // ASC_MENU_EVENT_TYPE_INSERT_HYPERLINK case 52: // ASC_MENU_EVENT_TYPE_INSERT_HYPERLINK
{ {
var props = asc_ReadCHyperLink(params, _current); var props = asc_ReadCHyperLink(params, _current);
...@@ -7299,7 +7306,7 @@ window["native"]["offline_apply_event"] = function(type,params) { ...@@ -7299,7 +7306,7 @@ window["native"]["offline_apply_event"] = function(type,params) {
case 11010: // ASC_SOCKET_EVENT_TYPE_ON_DISCONNECT case 11010: // ASC_SOCKET_EVENT_TYPE_ON_DISCONNECT
{ {
break;
} }
case 11020: // ASC_SOCKET_EVENT_TYPE_TRY_RECONNECT case 11020: // ASC_SOCKET_EVENT_TYPE_TRY_RECONNECT
...@@ -7307,6 +7314,25 @@ window["native"]["offline_apply_event"] = function(type,params) { ...@@ -7307,6 +7314,25 @@ window["native"]["offline_apply_event"] = function(type,params) {
var t = _api.CoAuthoringApi._CoAuthoringApi; var t = _api.CoAuthoringApi._CoAuthoringApi;
delete t.sockjs; delete t.sockjs;
t._initSocksJs(); t._initSocksJs();
break;
}
case 21000: // ASC_COAUTH_EVENT_TYPE_INSERT_URL_IMAGE
{
var urls = JSON.parse(params[0]);
AscCommon.g_oDocumentUrls.addUrls(urls);
var firstUrl;
for (var i in urls) {
if (urls.hasOwnProperty(i)) {
firstUrl = urls[i];
break;
}
}
params[0] = firstUrl;
_return = _s.offline_addImageDrawingObject(params);
break;
} }
default: default:
......
...@@ -153,6 +153,10 @@ DocumentUrls.prototype = { ...@@ -153,6 +153,10 @@ DocumentUrls.prototype = {
this.urlsReverse[url] = i; this.urlsReverse[url] = i;
this.imageCount++; this.imageCount++;
} }
if (window["IS_NATIVE_EDITOR"]) {
window["native"]["setUrlsCount"](this.imageCount);
}
}, },
addImageUrl : function(strPath, url){ addImageUrl : function(strPath, url){
var urls = {}; var urls = {};
......
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