The Student Room Group

Can't add hyperlink to selected text

When creating a post with hyperlinks, on showthread2 (and older versions before it) I would write out the text, go back and highlight the part where I want the link to be, and click the 'insert a link' button in the text editor. The end result would look like this.

When I try to do the same in React, clicking the URL box of the insert a link button causes the highlighted text to no longer be selected, and so the link just gets pasted in front of it.

https://www.youtube.com/watch?v=-WHDJIrSoQsLike so.

(edited 1 month ago)
Original post by AngryJellyfish
When creating a post with hyperlinks, on showthread2 (and older versions before it) I would write out the text, go back and highlight the part where I want the link to be, and click the 'insert a link' button in the text editor. The end result would look like this.

When I try to do the same in React, clicking the URL box of the insert a link button causes the highlighted text to no longer be selected, and so the link just gets pasted in front of it.

https://www.youtube.com/watch?v=-WHDJIrSoQsLike so.



I’ve just used your method and it’s honestly really useful and much more practical.
Original post by Talkative Toad
I’ve just used your method and it’s honestly really useful and much more practical.


I honestly assumed that was how most people did it! I don't think I've ever used the 'text to display' box before React was launched.
(edited 1 month ago)
Original post by AngryJellyfish
I honestly assumed that was how most people did it! I don't think I've ever used the 'text to display' box before React was launched.

I always used the box but that might change

Quick Reply

Latest

Trending

Trending