Commit c283fd71 authored by GoshaZotov's avatar GoshaZotov

fix bug: paste from ms webmatrix into cell editor

parent e5b63418
...@@ -1677,6 +1677,7 @@ ...@@ -1677,6 +1677,7 @@
isChange = true; isChange = true;
var text = currentCellData[i].text; var text = currentCellData[i].text;
var format = currentCellData[i].format;
var lengthOfText = text.length; var lengthOfText = text.length;
var iterCount = Math.ceil(lengthOfText / c_oAscMaxCellOrCommentLength); var iterCount = Math.ceil(lengthOfText / c_oAscMaxCellOrCommentLength);
var splitText; var splitText;
...@@ -1690,8 +1691,7 @@ ...@@ -1690,8 +1691,7 @@
if(!aResult.content[r][c].content) if(!aResult.content[r][c].content)
aResult.content[r][c].content = []; aResult.content[r][c].content = [];
aResult.content[r][c].content[0] = currentCellData[0]; aResult.content[r][c].content[0] = {format: format, text: splitText};
aResult.content[r][c].content[0].text = splitText;
if(iterCount !== j + 1) if(iterCount !== j + 1)
r++; r++;
...@@ -1699,8 +1699,10 @@ ...@@ -1699,8 +1699,10 @@
} }
} }
if(isChange) if(isChange)
{
result = {aResult: aResult, r: r, c: c}; result = {aResult: aResult, r: r, c: c};
} }
}
return result; return result;
}, },
......
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