Commit 50dc5a1e authored by GoshaZotov's avatar GoshaZotov

separated callback(into function _loadDataBeforePaste)

parent 8056d408
......@@ -8877,15 +8877,15 @@
var _clipboard = window["Asc"]["editor"].wb.clipboard;
var specialPasteProps = _clipboard.specialPasteProps;
//paste from excel binary
if(fromBinary)
{
t._pasteData(isLargeRange, fromBinary, pasteContent, bIsUpdate, canChangeColWidth);
return;
}
//загрузка шрифтов, в случае удачи на callback вставляем текст
t._loadFonts( pasteContent.props.fontsNew, function () {
else
{
var callbackLoadFonts = function()
{
var api = asc["editor"];
var isEndTransaction = false;
......@@ -8971,7 +8971,11 @@
{
History.EndTransaction();
}
} );
};
//загрузка шрифтов, в случае удачи на callback вставляем текст
t._loadFonts( pasteContent.props.fontsNew, callbackLoadFonts);
}
};
WorksheetView.prototype._pasteFromHTML = function (pasteContent, isCheckSelection, specialPasteProps) {
......
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