Commit e71d1e19 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@56396 954022d7-b5bf-4e40-9824-e11837661b57
parent 0762d8dd
......@@ -2544,7 +2544,9 @@
var htmlInShape = "";
if(divContent)
htmlInShape = divContent;
t.lStorageText = this._getTextFromHtml(htmlInShape);
return htmlInShape;
}
else if(isSelectedImages && isSelectedImages != -1)
......@@ -2710,6 +2712,19 @@
return table;
},
_getTextFromHtml: function(html)
{
var text = "";
for(var i = 0; i < html.children.length; i++)
{
if(html.children[i].nodeName.toLowerCase() == "p" && i != 0)
text += '\n';
text += html.children[i].innerText;
};
return text;
},
_addLocalStorage : function (isImage,isChart,cell,activeRange,trueRow,trueCol, worksheet, isCut, htmlInShape) {
var t = this;
var numRow = activeRange.r1;
......
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