Commit f2912663 authored by Oleg Korshul's avatar Oleg Korshul

plugins new scheme

parent c77aea10
...@@ -200,6 +200,11 @@ window["UpdateInstallPlugins"] = function() ...@@ -200,6 +200,11 @@ window["UpdateInstallPlugins"] = function()
{ {
var _plugins = JSON.parse(window["AscDesktopEditor"]["GetInstallPlugins"]()); var _plugins = JSON.parse(window["AscDesktopEditor"]["GetInstallPlugins"]());
_plugins["url"] = _plugins["url"].replace(" ", "%20"); _plugins["url"] = _plugins["url"].replace(" ", "%20");
var _len = _plugins["pluginsData"].length;
for (var i = 0; i < _len; i++)
_plugins["pluginsData"][i]["baseUrl"] = _plugins["url"] + _plugins["pluginsData"][i]["guid"].substring(4) + "/";
var _editor = window["Asc"]["editor"] ? window["Asc"]["editor"] : window.editor; var _editor = window["Asc"]["editor"] ? window["Asc"]["editor"] : window.editor;
_editor.sendEvent("asc_onPluginsInit", _plugins); _editor.sendEvent("asc_onPluginsInit", _plugins);
}; };
......
...@@ -43,3 +43,6 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function() ...@@ -43,3 +43,6 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function()
this.sendEvent('asc_onGetEditorPermissions', oResult); this.sendEvent('asc_onGetEditorPermissions', oResult);
} }
}; };
// !!!
window["compareVersions"] = true;
\ 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