Commit bf37c813 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

добавил проверку

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51557 954022d7-b5bf-4e40-9824-e11837661b57
parent a4074681
......@@ -3253,10 +3253,13 @@ PasteProcessor.prototype =
{
var base64 = null;
var classNode;
if(node.children[0] && node.children[0].getAttribute("class") != null)
if(node.children[0] && node.children[0].getAttribute("class") != null && node.children[0].getAttribute("class").indexOf("docData;") > -1)
classNode = node.children[0].getAttribute("class");
else if(node.children[0] && node.children[0].children[0] && node.children[0].children[0].getAttribute("class") != null)
else if(node.children[0] && node.children[0].children[0] && node.children[0].children[0].getAttribute("class") != null && node.children[0].children[0].getAttribute("class").indexOf("docData;") > -1)
classNode = node.children[0].children[0].getAttribute("class");
else if(node.children[0] && node.children[0].children[0] && node.children[0].children[0].children[0] && node.children[0].children[0].children[0].getAttribute("class") != null && node.children[0].children[0].children[0].getAttribute("class").indexOf("docData;") > -1)
classNode = node.children[0].children[0].children[0].getAttribute("class");
if( classNode != null ){
cL = classNode.split(" ");
for (var i = 0; i < cL.length; i++){
......
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