Skip to content

Commit

Permalink
Fix bug #72818
Browse files Browse the repository at this point in the history
  • Loading branch information
KhromovNikita authored and KirillovIlya committed Jan 28, 2025
1 parent 756685c commit 90fd27d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pdf/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,18 @@

this.sendEvent("asc_onHyperlinkClick", Url);
};
PDFEditorApi.prototype.add_Hyperlink = function(HyperProps) {
let oDoc = this.getPDFDoc();

if (null != HyperProps.Text) {
AscFonts.FontPickerByCharacter.checkText(HyperProps.Text, this, function() {
oDoc.AddHyperlink(HyperProps);
});
}
else {
oDoc.AddHyperlink(HyperProps);
}
};
PDFEditorApi.prototype.sync_VerticalTextAlign = function(align) {
this.sendEvent("asc_onVerticalTextAlign", align);
};
Expand Down Expand Up @@ -3114,6 +3125,7 @@
PDFEditorApi.prototype['remove_Hyperlink'] = PDFEditorApi.prototype.remove_Hyperlink;
PDFEditorApi.prototype['change_Hyperlink'] = PDFEditorApi.prototype.change_Hyperlink;
PDFEditorApi.prototype['sync_HyperlinkClickCallback'] = PDFEditorApi.prototype.sync_HyperlinkClickCallback;
PDFEditorApi.prototype['add_Hyperlink'] = PDFEditorApi.prototype.add_Hyperlink;
PDFEditorApi.prototype['SetShowTextSelectPanel'] = PDFEditorApi.prototype.SetShowTextSelectPanel;
PDFEditorApi.prototype['NeedShowTextSelectPanel'] = PDFEditorApi.prototype.NeedShowTextSelectPanel;

Expand Down

0 comments on commit 90fd27d

Please sign in to comment.