question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: Populate <LinkInput /> with the current href

See original GitHub issue

Description

Usecase: When a user clicks on an existing anchor link (<a href="...">...</a>), the <LinkInput /> box should populate with the current value to allow for editing.

Possible Implementation

Right now I am trying to implement this myself in my own custom link modal component, but I can’t figure out how to get the current mark’s attributes. Figuring this out right now, and may post an update later when I do. @ifiokjr Do you have any advice on how to do this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ifiokjrcommented, Sep 25, 2019

@charlex I’ll hopefully have a chance to take a look at this at some point in the next 24 hrs.

Narrator He did not.

0reactions
ifiokjrcommented, Mar 2, 2020

Oh yes, thanks. I’m not sure why it didn’t close automatically.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Insert current URL into a link using JS and HTML
This should do it: <script> baseurl="http://www.facebook.com?" function buildURL(item) { item.href=baseurl+window.location.href; ...
Read more >
Linking button to a URL on onclick event in html - Plus2net
So here are some examples of using buttons to link different pages. HTML button with onClick event with location to link between web...
Read more >
RouterLink - Angular
The input that you provide to the link is treated as a delta to the current URL. For instance, suppose the current URL...
Read more >
How to Create a "COPY LINK" Input Field with HTML, CSS ...
GET THE SOURCE CODE https://codepen.io/dcode-software/pen/eYMYXrKIn today's video we'll be creating a "Copy Link" input field using HTML, ...
Read more >
Solved: In a dashboard, how do I create a hyperlink that d...
Solved: Hi there, I have a dashboard with a text box in it. When I click on a hyperlink on the same dashboard,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found