hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Persist link text value when changing types

Open kylecotter opened this issue 1 year ago • 2 comments

What are you trying to do?

When the link text field has a value and you change the link type (e.g. URL to Entry) you lose the value of link text.

Often when stubbing out content for new sites we'll just use a URL link type for getting CTAs and other links in place before entries are ready to be properly linked to. So it's a little tedious to remember to copy the link text before swapping types later on.

What's your proposed solution?

When switching between link types link text should persist.

Additional context

No response

kylecotter avatar Jan 25 '24 05:01 kylecotter

The thinking here was that if you're changing the link you're pointing to (by changing the type), you'll possibly want to change the text used for it as well. That, and we didn't want to have "stale" content sticking around when you change the link type, particularly as extra settings on the field can be hidden away in an element slide-out and missed.

Although I understand the workflow you're doing and that makes sense (and is pretty common). I'll have a think if this is something we should allow just for link text though.

engram-design avatar Jan 25 '24 13:01 engram-design

Chiming in here to second this feature request. It's easier to delete/change the link text after changing the link type rather than having to remember and retype it. Think allowing the link text to persist regardless of link type as the default behaviour would be more user friendly.

joelzerner avatar Aug 16 '24 03:08 joelzerner