Commit ab750cb2 authored by Oleg Korshul's avatar Oleg Korshul

InitDragDrop on endLoadSdk

parent f55cb7c0
......@@ -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()
{
......@@ -886,6 +881,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