Commit 838a497b authored by GoshaZotov's avatar GoshaZotov

add function _getTextFromShape(change _getTextFromHtml on _getTextFromShape)

parent 3ae4acc3
...@@ -2584,7 +2584,7 @@ ...@@ -2584,7 +2584,7 @@
if(divContent) if(divContent)
htmlInShape = divContent; htmlInShape = divContent;
t.lStorageText = this._getTextFromHtml(htmlInShape); t.lStorageText = this._getTextFromShape(isIntoShape);
return htmlInShape; return htmlInShape;
} }
...@@ -2744,6 +2744,32 @@ ...@@ -2744,6 +2744,32 @@
return text; return text;
}, },
_getTextFromShape: function(documentContent)
{
var res = "";
if(documentContent && documentContent.Content && documentContent.Content.length)
{
for(var i = 0; i < documentContent.Content.length; i++)
{
if(documentContent.Content[i])
{
var paraText = documentContent.Content[i].Get_SelectedText();
if(paraText)
{
if(i !== 0)
{
res += '\n';
}
res += paraText;
}
}
}
}
return res;
},
_makeCellValuesHtml: function (node,isText) { _makeCellValuesHtml: function (node,isText) {
//if (!callback || !callback.call) {return;} //if (!callback || !callback.call) {return;}
......
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