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

Bug 26647 - Не сохраняется текст, содержащий ссылку некуда не направленную

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58492 954022d7-b5bf-4e40-9824-e11837661b57
parent f10ac553
......@@ -5847,18 +5847,20 @@ PasteProcessor.prototype =
}
catch(e) { sDecoded = href; }
href = sDecoded;
var title = child.getAttribute("title");
bAddParagraph = this._Decide_AddParagraph(child, pPr, bAddParagraph);
oHyperlink = new ParaHyperlink();
oHyperlink.Set_Paragraph(this.oCurPar);
oHyperlink.Set_Value( href );
if(null != title)
oHyperlink.Set_ToolTip(title);
oOldHyperlink = this.oCurHyperlink;
oOldHyperlinkContentPos = this.oCurHyperlinkContentPos;
this.oCurHyperlink = oHyperlink;
this.oCurHyperlinkContentPos = 0;
if(href && href.length > 0){
var title = child.getAttribute("title");
bAddParagraph = this._Decide_AddParagraph(child, pPr, bAddParagraph);
oHyperlink = new ParaHyperlink();
oHyperlink.Set_Paragraph(this.oCurPar);
oHyperlink.Set_Value( href );
if(null != title)
oHyperlink.Set_ToolTip(title);
oOldHyperlink = this.oCurHyperlink;
oOldHyperlinkContentPos = this.oCurHyperlinkContentPos;
this.oCurHyperlink = oHyperlink;
this.oCurHyperlinkContentPos = 0;
}
}
}
bAddParagraph = this._Execute(child, Common_CopyObj(pPr), false, bAddParagraph, bIsBlockChild || bInBlock);
......
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