mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
For bug #80160:
Add flag isFromShape to CHyperlink to differentiate hyperlink from shape and hyperlink from cell
This commit is contained in:
committed by
Sergey Luzyanin
parent
3d21470ffd
commit
2ec6c7ce7d
@ -12074,12 +12074,15 @@ function isAllowPasteLink(pastedWb) {
|
||||
oHyperlink.Hyperlink = hyperlinkValue;
|
||||
}
|
||||
|
||||
const hyperlinkResult = new asc_CHyperlink(oHyperlink);
|
||||
hyperlinkResult.asc_setIsFromShape(true);
|
||||
|
||||
cellCursor =
|
||||
{cursor: drawingInfo.cursor, target: c_oTargetType.Cells, col: -1, row: -1, userId: userId};
|
||||
return {
|
||||
cursor: kCurHyperlink,
|
||||
target: c_oTargetType.Hyperlink,
|
||||
hyperlink: new asc_CHyperlink(oHyperlink),
|
||||
hyperlink: hyperlinkResult,
|
||||
cellCursor: cellCursor,
|
||||
userId: userId
|
||||
};
|
||||
@ -13912,6 +13915,7 @@ function isAllowPasteLink(pastedWb) {
|
||||
}
|
||||
|
||||
objectInfo.hyperlink = new asc_CHyperlink(hyperlink);
|
||||
objectInfo.hyperlink.asc_setIsFromShape(true);
|
||||
objectInfo.hyperlink.asc_setText(shapeHyperlink.GetSelectedText(true, true));
|
||||
}
|
||||
}
|
||||
@ -13929,6 +13933,7 @@ function isAllowPasteLink(pastedWb) {
|
||||
hyperlink.Tooltip = cNvProps.hlinkClick.tooltip;
|
||||
}
|
||||
objectInfo.hyperlink = new asc_CHyperlink(hyperlink);
|
||||
objectInfo.hyperlink.asc_setIsFromShape(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user