Commit 7e8ad094 authored by Sergey.Konovalov's avatar Sergey.Konovalov Committed by Alexander.Trofimov

Bug 21099 - Текст вставляется с highlight color при вставке со стороннего ресурса

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51266 954022d7-b5bf-4e40-9824-e11837661b57
parent 7b796b45
......@@ -5634,10 +5634,14 @@ PasteProcessor.prototype =
value = value.replace(/(\r|\t|\n)/g, ' ');
if(value.length > 0)
{
bAddParagraph = this._Decide_AddParagraph(node.parentNode, pPr, bAddParagraph);
var oTargetNode = node;
//чтобы разделить случаи <p>text</p> и <p><span>text</span></p>
if(null != node.parentNode && false == this._IsBlockElem(node.parentNode.nodeName.toLowerCase()))
oTargetNode = node.parentNode;
bAddParagraph = this._Decide_AddParagraph(oTargetNode, pPr, bAddParagraph);
//��������� ������� ����� ���� �� ���������
this._commit_rPr(node.parentNode);
this._commit_rPr(oTargetNode);
for(var i = 0, length = value.length; i < length; i++)
{
var Char = value.charAt(i);
......
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