Copy marked text in URL format popup

(Matthias Schuster) #1

When I choose to add a link on a text, I simply mark the specific text (in Github), press the link button and I get a nice, preformatted syntax, which lets me simply copy in the URL.

In Discourse, a pop-up appears which lets me write the already written text again.

My proposal is: Let the pop-up automatically use the marked text as “displayed text” :slight_smile:

(Jeff Atwood) #2

Oh yes we should be doing this, can you add it to your list @vinothkannans low priority?

(Joshua Rosenfeld) #3

FYI this is purely a UX issue. Currently, if you highlight text, click Hyperlink in the toolbar and add a URL, it does add the link to the selected text despite the “optional title” field being left blank.

Ideally the highlighted text should be added to the “optional title” field - but it does at least work.

(Vinoth Kannan) #4

Okay. Added to my list :+1:

(Vinoth Kannan) #5

It is done. Now the selected text will be displayed in the title field.

(Joshua Rosenfeld) #6

Looks good! Thanks Vinoth :tada:

(Jeff Atwood) #7

One tweak, you should trim any leading or trailing spaces from the text used for the selected text.

(Vinoth Kannan) #8

Done. Now the trimmed selected text will be used in popup.

(Joshua Rosenfeld) #9

This topic was automatically closed after 25 hours. New replies are no longer allowed.