Editing link targets

I realize this is an old post however my code may be of help to someone with this issue. Note that I am very new to Prosemirror, so there may well be better ways to accomplish this.

See my post: How to get the determined attributes from a mark