Commit ffc22f45 authored by GoshaZotov's avatar GoshaZotov

add saveOnlyText by c_oSpecialPasteProps

parent e1b87b77
......@@ -1103,7 +1103,8 @@
insertAsNestedTable: 20,
uniteIntoTable: 21,
insertAsNewRows: 22
insertAsNewRows: 22,
saveOnlyText: 23
};
//------------------------------------------------------------export--------------------------------------------------
......@@ -1784,6 +1785,7 @@
prot['mergeFormatting'] = prot.mergeFormatting;
prot['uniteList'] = prot.uniteList;
prot['doNotUniteList'] = prot.doNotUniteList;
prot['saveOnlyText'] = prot.saveOnlyText;
// ----------------------------- plugins ------------------------------- //
var EPluginDataType =
......
......@@ -2252,7 +2252,7 @@ PasteProcessor.prototype =
props = [sProps.paste, sProps.uniteList, sProps.doNotUniteList];
}*/
props = [sProps.paste/*, sProps.mergeFormatting*/, sProps.pasteOnlyValues];
props = [sProps.paste/*, sProps.mergeFormatting*/, sProps.saveOnlyText];
if(null !== props)
{
......@@ -2363,7 +2363,7 @@ PasteProcessor.prototype =
{
break;
}
case Asc.c_oSpecialPasteProps.pasteOnlyValues:
case Asc.c_oSpecialPasteProps.saveOnlyText:
{
//в данному случае мы должны применить к вставленному фрагменту стиль paraRun, в который вставляем
if(pasteIntoParagraphPr)
......@@ -2430,7 +2430,7 @@ PasteProcessor.prototype =
{
break;
}
case Asc.c_oSpecialPasteProps.pasteOnlyValues:
case Asc.c_oSpecialPasteProps.saveOnlyText:
{
//в данному случае мы должны применить к вставленному фрагменту стиль paraRun, в который вставляем
if(pasteIntoParaRunPr)
......@@ -2909,7 +2909,7 @@ PasteProcessor.prototype =
var aContentExcel = this._readFromBinaryExcel(base64FromExcel);
History.TurnOn();
if(window['AscCommon'].g_clipboardBase.specialPasteStart && Asc.c_oSpecialPasteProps.pasteOnlyValues === window['AscCommon'].g_clipboardBase.specialPasteProps)
if(window['AscCommon'].g_clipboardBase.specialPasteStart && Asc.c_oSpecialPasteProps.saveOnlyText === window['AscCommon'].g_clipboardBase.specialPasteProps)
{
var aContent = oThis._convertExcelBinary(aContentExcel);
oThis.aContent = aContent.content;
......@@ -3118,7 +3118,7 @@ PasteProcessor.prototype =
aContent.fonts = oThis._checkFontsOnLoad(aContent.fonts);
var oObjectsForDownload = GetObjectsForImageDownload(aContent.aPastedImages);
if(window['AscCommon'].g_clipboardBase.specialPasteStart && Asc.c_oSpecialPasteProps.pasteOnlyValues === window['AscCommon'].g_clipboardBase.specialPasteProps)
if(window['AscCommon'].g_clipboardBase.specialPasteStart && Asc.c_oSpecialPasteProps.saveOnlyText === window['AscCommon'].g_clipboardBase.specialPasteProps)
{
fPrepasteCallback();
}
......@@ -4050,7 +4050,7 @@ PasteProcessor.prototype =
{
this.bIsPlainText = this._CheckIsPlainText(node);
if(window['AscCommon'].g_clipboardBase.specialPasteStart && Asc.c_oSpecialPasteProps.pasteOnlyValues === window['AscCommon'].g_clipboardBase.specialPasteProps)
if(window['AscCommon'].g_clipboardBase.specialPasteStart && Asc.c_oSpecialPasteProps.saveOnlyText === window['AscCommon'].g_clipboardBase.specialPasteProps)
{
fPasteHtmlWordCallback();
}
......
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