Commit 7cc467bb authored by GoshaZotov's avatar GoshaZotov

+ by paste internal array(for plugin)

parent ac23fc25
......@@ -3099,11 +3099,6 @@ PasteProcessor.prototype =
this._pasteBinaryFromPresentation(base64FromPresentation, bDuplicate);
bInsertFromBinary = true;
}
else if(typeof fromBinary === "object")
{
this._pasteBinaryFromWord(fromBinary, true);
bInsertFromBinary = true;
}
if(fromBinary)
{
......@@ -4325,17 +4320,37 @@ PasteProcessor.prototype =
if(onlyBinary)
{
if(onlyBinary.indexOf("pptData;") > -1)
{
base64FromPresentation = onlyBinary.split('pptData;')[1];
}
else if(onlyBinary.indexOf("docData;") > -1)
if(typeof onlyBinary === "object")
{
base64FromWord = onlyBinary.split('docData;')[1];
var prefix = String.fromCharCode(onlyBinary[0], onlyBinary[1], onlyBinary[2], onlyBinary[3])
if("PPTY" === prefix)
{
base64FromPresentation = onlyBinary;
}
else if("DOCY" === prefix)
{
base64FromWord = onlyBinary;
}
else if("XLSY" === prefix)
{
base64FromExcel = onlyBinary;
}
}
else if(onlyBinary.indexOf("xslData;") > -1)
else
{
base64FromExcel = onlyBinary.split('xslData;')[1];
if(onlyBinary.indexOf("pptData;") > -1)
{
base64FromPresentation = onlyBinary.split('pptData;')[1];
}
else if(onlyBinary.indexOf("docData;") > -1)
{
base64FromWord = onlyBinary.split('docData;')[1];
}
else if(onlyBinary.indexOf("xslData;") > -1)
{
base64FromExcel = onlyBinary.split('xslData;')[1];
}
}
}
else if(node)
......
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