Commit c61228fb authored by Oleg Korshul's avatar Oleg Korshul Committed by GitHub

Merge pull request #33 from ONLYOFFICE/release/4.0.1

InitDragDrop on endLoadSdk
parents dc0a9cd2 ab750cb2
......@@ -174,11 +174,6 @@
t.sync_EndAction(c_oAscAsyncActionType.BlockInteraction, c_oAscAsyncAction.UploadImage);
});
// init drag&drop
AscCommon.InitDragAndDrop(this.HtmlElement, function(error, files)
{
t._uploadCallback(error, files);
});
AscCommon.loadSdk(this._editorNameById(), function()
{
......@@ -891,6 +886,12 @@
};
baseEditorsApi.prototype._onEndLoadSdk = function()
{
// init drag&drop
AscCommon.InitDragAndDrop(this.HtmlElement, function(error, files)
{
t._uploadCallback(error, files);
});
AscFonts.g_fontApplication.Init();
this.FontLoader = AscCommon.g_font_loader;
......
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