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

Unexpected value in entry field when creating link with first word ending with a colon #27832

Closed
bobbingwide opened this issue Dec 19, 2020 · 1 comment

Comments

@bobbingwide
Copy link
Contributor

Describe the bug

I was playing with rich text links and accidentally discovered that if you select a word or words containing a colon that the block editor assumes you're using a special protocol.

Is this working as designed? I can understand it if I was using mail: or tel:, when the selection also contains the email address or telephone number, but don't think it's much use for other words.

To reproduce
Steps to reproduce the behavior:

  1. Create a new post.
  2. Type some text including a word ending with a colon or phrase containing a colon at the end of the first word.
  3. Select text starting from the word ending with the colon and click on the Link tool icon.
  4. The dialog assumes you're using a special protocol.

eg

wp:template-part 
Issue: 

Expected behavior
I expected an empty entry field with the Search or type URL placeholder to allow me to select the target from current content.

Screenshots
image

If applicable, add screenshots to help explain your problem.

Editor version (please complete the following information):

  • WordPress version: [e.g: 5.3.2] 5.6
  • Does the website has Gutenberg plugin installed, or is it using the block editor that comes by default? [e.g: "gutenberg plugin", "default"] 9.5.2
  • If the Gutenberg plugin is installed, which version is it? [e.g., 7.6]

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22] Version 87.0.4280.88 (Official Build) (64-bit)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

@annezazu
Copy link
Contributor

@bobbingwide hey there! Thanks for reporting this. It appears to be a duplicate of this previously opened issue: #26266 As a result, I'm going to close this out but feel free to chime in there :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants