mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/sdkjs/pulls/1980
This commit is contained in:
@ -3537,14 +3537,11 @@
|
||||
return;
|
||||
}
|
||||
|
||||
let hyperlinkAnchor = HyperProps.Anchor;
|
||||
if (typeof hyperlinkAnchor === "string") {
|
||||
hyperlinkAnchor = hyperlinkAnchor.trim();
|
||||
}
|
||||
const hyperlinkAnchor = typeof HyperProps.Anchor === 'string' && HyperProps.Anchor;
|
||||
|
||||
let hyperlinkId = HyperProps.Value;
|
||||
if (!hyperlinkId && hyperlinkAnchor) {
|
||||
hyperlinkId = "#" + hyperlinkAnchor;
|
||||
hyperlinkId = '#' + hyperlinkAnchor;
|
||||
}
|
||||
if (!hyperlinkId) {
|
||||
return;
|
||||
@ -3605,14 +3602,11 @@
|
||||
return null;
|
||||
}
|
||||
|
||||
let hyperlinkAnchor = HyperProps.Anchor;
|
||||
if (typeof hyperlinkAnchor === "string") {
|
||||
hyperlinkAnchor = hyperlinkAnchor.trim();
|
||||
}
|
||||
const hyperlinkAnchor = typeof HyperProps.Anchor === 'string' && HyperProps.Anchor;
|
||||
|
||||
let hyperlinkId = HyperProps.Value;
|
||||
if (!hyperlinkId && hyperlinkAnchor) {
|
||||
hyperlinkId = "#" + hyperlinkAnchor;
|
||||
hyperlinkId = '#' + hyperlinkAnchor;
|
||||
}
|
||||
if (!hyperlinkId) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user