mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
This commit is contained in:
parent
5dccd90ac0
commit
95e2ee3aeb
1 changed files with 2 additions and 2 deletions
|
|
@ -744,8 +744,8 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText
|
|||
let anchor = linkElement.textContent.replace(Constants.ZWSP, "");
|
||||
if (!anchor && linkAddress) {
|
||||
anchor = linkAddress.replace("https://", "").replace("http://", "");
|
||||
if (anchor.length > 16) {
|
||||
anchor = anchor.substring(0, 16) + "...";
|
||||
if (anchor.length > 24) {
|
||||
anchor = anchor.substring(0, 24) + "...";
|
||||
}
|
||||
linkElement.innerHTML = Lute.EscapeHTMLStr(anchor);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue