Commit 5e3b8b45 authored by Oleg Korshul's avatar Oleg Korshul

correct paste html

parent d1b1d2fb
......@@ -1228,16 +1228,26 @@
return null;
var _elem = document.createElement("div");
_elem.innerHTML = htmlText;
document.body.appendChild(_elem);
this.incrementCounterLongAction();
this.asc_PasteData(AscCommon.c_oAscClipboardDataFormat.HtmlElement, _elem);
this.decrementCounterLongAction();
this.checkLongActionCallback(function(){
if (true)
{
this.checkLongActionCallback(function ()
{
document.body.removeChild(_elem);
_elem = null;
}, null);
}
else
{
document.body.removeChild(_elem);
_elem = null;
}, null);
}
};
// Builder
......
......@@ -4603,9 +4603,9 @@ background-repeat: no-repeat;\
{
this.isPasteFonts_Images = false;
this.pasteImageMap = null;
this.decrementCounterLongAction();
this.pasteCallback();
this.pasteCallback = null;
this.decrementCounterLongAction();
}
else if (this.isSaveFonts_Images)
{
......
......@@ -5986,9 +5986,9 @@ background-repeat: no-repeat;\
{
this.isPasteFonts_Images = false;
this.pasteImageMap = null;
this.decrementCounterLongAction();
this.pasteCallback();
this.pasteCallback = null;
this.decrementCounterLongAction();
}
else if (this.isSaveFonts_Images)
{
......
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