Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Insert link: adding a link should auto-detect selected URLs #3513

Closed
nylen opened this issue Nov 16, 2017 · 1 comment
Closed

Insert link: adding a link should auto-detect selected URLs #3513

nylen opened this issue Nov 16, 2017 · 1 comment
Assignees
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time [Type] Enhancement A suggestion for improvement.

Comments

@nylen
Copy link
Member

nylen commented Nov 16, 2017

Scenario

  • Paste or type a URL into a Paragraph block
  • Click the Link button in the toolbar

Expected behavior

The link dialog detects that I have selected a URL in my post content and pre-fills the URL field with the selected text. (Or, better yet, the URL is automatically recognized and turned into a link.)

Actual behavior

The URL field in the link dialog is left blank. If I have used my clipboard for anything else since then, I have to perform several extra operations to fill in the URL.

@nylen
Copy link
Member Author

nylen commented Nov 16, 2017

Adding a link with no selected text and pasting a URL leaves a link with empty text. In this case the link text should probably be pre-filled with the URL.

I would also like to be able to trigger this behavior via Ctrl+K.

@ephox-mogran ephox-mogran added the [Type] Enhancement A suggestion for improvement. label Nov 16, 2017
@danielbachhuber danielbachhuber added the Good First Issue An issue that's suitable for someone looking to contribute for the first time label May 25, 2018
@danielbachhuber danielbachhuber added this to the WordPress 5.0 milestone May 25, 2018
@noisysocks noisysocks assigned noisysocks and unassigned noisysocks Jul 23, 2018
@designsimply designsimply changed the title Adding a link should auto-detect selected URLs Insert link: adding a link should auto-detect selected URLs Jul 27, 2018
@noisysocks noisysocks self-assigned this Aug 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First Issue An issue that's suitable for someone looking to contribute for the first time [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

4 participants