Commit fd497b05 authored by GoshaZotov's avatar GoshaZotov

add paragraphText(pasteFromBinaryWord)

parent 08709a29
...@@ -2777,6 +2777,8 @@ ...@@ -2777,6 +2777,8 @@
this.isUsuallyPutImages = null; this.isUsuallyPutImages = null;
this.maxLengthRowCount = 0; this.maxLengthRowCount = 0;
this.paragraphText = "";
return this; return this;
} }
...@@ -2871,6 +2873,8 @@ ...@@ -2871,6 +2873,8 @@
_parseParagraph: function(paragraph, row, col, rowSpan, colSpan) _parseParagraph: function(paragraph, row, col, rowSpan, colSpan)
{ {
this.paragraphText = "";
var content = paragraph.elem.Content; var content = paragraph.elem.Content;
var row, cTextPr, fontFamily = "Arial"; var row, cTextPr, fontFamily = "Arial";
var text = null; var text = null;
...@@ -2960,10 +2964,12 @@ ...@@ -2960,10 +2964,12 @@
oNewItem.content.push(formatText); oNewItem.content.push(formatText);
if(text !== null) if(text !== null)
{
oNewItem.content[oNewItem.content.length - 1].text = text; oNewItem.content[oNewItem.content.length - 1].text = text;
this.paragraphText += text;
}
text = ""; text = "";
}; }
//проходимся по контенту paragraph //проходимся по контенту paragraph
...@@ -3038,6 +3044,7 @@ ...@@ -3038,6 +3044,7 @@
} }
} }
oNewItem.textVal = this.paragraphText;
}, },
_parseParaRun: function(paraRun, oNewItem, paraPr, s, row, c1, text) _parseParaRun: function(paraRun, oNewItem, paraPr, s, row, c1, text)
...@@ -3125,8 +3132,11 @@ ...@@ -3125,8 +3132,11 @@
if(text !== null) if(text !== null)
{
oNewItem.content[oNewItem.content.length - 1].text = text; oNewItem.content[oNewItem.content.length - 1].text = text;
this.paragraphText += text;
}
cloneNewItem = oNewItem.clone(); cloneNewItem = oNewItem.clone();
text = ""; text = "";
......
...@@ -9141,6 +9141,7 @@ ...@@ -9141,6 +9141,7 @@
} else { } else {
pastedRangeProps.value2 = contentCurrentObj; pastedRangeProps.value2 = contentCurrentObj;
pastedRangeProps.alignVertical = currentObj.va; pastedRangeProps.alignVertical = currentObj.va;
pastedRangeProps.val = currentObj.textVal;
} }
if (contentCurrentObj.length === 1 && contentCurrentObj[0].format) { if (contentCurrentObj.length === 1 && contentCurrentObj[0].format) {
......
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