Commit 00c02782 authored by SergeyLuzyanin's avatar SergeyLuzyanin

bSaveFormat

parent 5be68c1f
...@@ -1290,7 +1290,9 @@ ...@@ -1290,7 +1290,9 @@
_elem.innerHTML = htmlText; _elem.innerHTML = htmlText;
document.body.appendChild(_elem); document.body.appendChild(_elem);
this.incrementCounterLongAction(); this.incrementCounterLongAction();
this.asc_PasteData(AscCommon.c_oAscClipboardDataFormat.HtmlElement, _elem, undefined, undefined, true); var b_old_save_format = AscCommon.g_clipboardBase.bSaveFormat;
AscCommon.g_clipboardBase.bSaveFormat = true;
this.asc_PasteData(AscCommon.c_oAscClipboardDataFormat.HtmlElement, _elem);
this.decrementCounterLongAction(); this.decrementCounterLongAction();
if (true) if (true)
...@@ -1299,6 +1301,7 @@ ...@@ -1299,6 +1301,7 @@
{ {
document.body.removeChild(_elem); document.body.removeChild(_elem);
_elem = null; _elem = null;
AscCommon.g_clipboardBase.bSaveFormat = b_old_save_format;
}; };
if(this.checkLongActionCallback(fCallback, null)){ if(this.checkLongActionCallback(fCallback, null)){
fCallback(); fCallback();
...@@ -1308,6 +1311,7 @@ ...@@ -1308,6 +1311,7 @@
{ {
document.body.removeChild(_elem); document.body.removeChild(_elem);
_elem = null; _elem = null;
AscCommon.g_clipboardBase.bSaveFormat = b_old_save_format;
} }
}; };
......
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