Commit f2912663 authored by Oleg Korshul's avatar Oleg Korshul

plugins new scheme

parent c77aea10
......@@ -200,6 +200,11 @@ window["UpdateInstallPlugins"] = function()
{
var _plugins = JSON.parse(window["AscDesktopEditor"]["GetInstallPlugins"]());
_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;
_editor.sendEvent("asc_onPluginsInit", _plugins);
};
......
......@@ -42,4 +42,7 @@ AscCommon.baseEditorsApi.prototype._onEndPermissions = function()
oResult.setRights(Asc.c_oRights.Edit);
this.sendEvent('asc_onGetEditorPermissions', oResult);
}
};
\ No newline at end of file
};
// !!!
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