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)
{
......@@ -4324,6 +4319,25 @@ PasteProcessor.prototype =
var classNode, base64FromExcel = null, base64FromWord = null, base64FromPresentation = null;
if(onlyBinary)
{
if(typeof onlyBinary === "object")
{
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("pptData;") > -1)
{
......@@ -4338,6 +4352,7 @@ PasteProcessor.prototype =
base64FromExcel = onlyBinary.split('xslData;')[1];
}
}
}
else if(node)
{
//todo переделать получения класса
......
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