Commit 4d752305 authored by GoshaZotov's avatar GoshaZotov

add special paste function into word api

parent 2f175982
...@@ -1776,10 +1776,17 @@ function CopyPasteCorrectString(str) ...@@ -1776,10 +1776,17 @@ function CopyPasteCorrectString(str)
return res; return res;
} }
function Editor_Paste_Exec(api, pastebin, nodeDisplay, onlyBinary) function Editor_Paste_Exec(api, pastebin, nodeDisplay, onlyBinary, specialPasteProps)
{ {
var oPasteProcessor = new PasteProcessor(api, true, true, false); var oPasteProcessor = new PasteProcessor(api, true, true, false);
oPasteProcessor.Start(pastebin, nodeDisplay, null, onlyBinary); if(!specialPasteProps)
{
oPasteProcessor.Start(pastebin, nodeDisplay, null, onlyBinary);
}
else
{
}
} }
function trimString( str ){ function trimString( str ){
return str.replace(/^\s+|\s+$/g, '') ; return str.replace(/^\s+|\s+$/g, '') ;
......
...@@ -1779,7 +1779,18 @@ background-repeat: no-repeat;\ ...@@ -1779,7 +1779,18 @@ background-repeat: no-repeat;\
} }
} }
}; };
asc_docs_api.prototype.asc_SpecialPaste = function(props)
{
return AscCommon.g_clipboardBase.Special_Paste(props);
};
asc_docs_api.prototype.asc_SpecialPasteData = function(props)
{
AscCommon.Editor_Paste_Exec(this, null, null, null, props);
//this.wb.specialPasteData(props);
};
asc_docs_api.prototype.onSaveCallback = function(e, isUndoRequest) asc_docs_api.prototype.onSaveCallback = function(e, isUndoRequest)
{ {
var t = this; var t = this;
......
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