insert link inserts the link not at the cursor position but at the front #121
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this might be because the link insert is a button and to click it the focus jumps out of the text area, but the inserted link is supposed to land where the cursor was last in the text area and not just put in Front of the text.
Implemented in
a74165f.The post editor now captures its cursor and selection before opening the link or media picker, carries that insertion point through picker searches and tab changes, and restores it before inserting Markdown. This fixes internal links, external links, newly created post links, and media insertions through the shared modal path while preserving direct live-cursor insertion.
Verification: