Commit c283fd71 authored by GoshaZotov's avatar GoshaZotov

fix bug: paste from ms webmatrix into cell editor

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