Make WordPress Core

Opened 6 years ago

Closed 4 years ago

#45706 closed defect (bug) (reported-upstream)

Don't want paragraph block to forcefully convert pasted URL

Reported by: bshuchter's profile bshuchter Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.0.1
Component: Editor Keywords:
Focuses: Cc:

Description

I'm creating a post. I want to paste a URL to a website, by itself, into a paragraph block, so that the URL displays on the front end of the site. No other text will appear in the paragraph. The paragraph block thinks it's an embed link and changes to an embed block, producing an error.

If I instead convert this block to custom HTML, I don't have the ability to use the link icon to create a link on the URL.

The workaround is to type a space into the paragraph block, so that the block recognizes it as text, then paste in the URL. After I link the URL using the link icon, I can delete the space, and it appears as I want it to. However, I don't want to force my client to use this workaround.

Is there a way to paste a URL into a paragraph block so that the block doesn't try to assume I don't want it to appear as a URL?

Change History (2)

This ticket was mentioned in Slack in #core by noisysocks. View the logs.


4 years ago

#2 @noisysocks
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

This is a duplicate of this upstream issue:

https://github.com/WordPress/gutenberg/issues/21789

It was recently fixed in this PR:

https://github.com/WordPress/gutenberg/pull/17413

Note: See TracTickets for help on using tickets.