Make WordPress Core

Opened 4 years ago

Last modified 4 years ago

#52359 new defect (bug)

Links in Gutenberg Continue to be Built When Typing

Reported by: dlfulle's profile dlfulle Owned by:
Milestone: Awaiting Review Priority: normal
Severity: minor Version:
Component: General Keywords:
Focuses: Cc:

Description

If adding a link to the trailing word or phrase in Gutenberg, the link continues to be built when you continue typing. Basically, the anchor tag keeps getting pushed to the right as you type.

To reproduce...type a word or phrase and end in a linking word or phrase. For this example, we will link to the word WordPress. Highlight WordPress, click the link icon in the toolbar and add the URL https://www.wordpress.org. Then continue typing. The new text will continue as part of the link. Expected behavior would be that the link does not continue to be built after the target word or phrase.

Change History (1)

#1 @paaljoachim
4 years ago

Hi @dlfulle

For the future Gutenberg has a repository on Github. Here: https://github.com/WordPress/gutenberg/issues/new/choose
We track all issues there.

I am testing with
A local site.
theme: Twenty Twenty One.
WordPress: 5.6
Gutenberg plugin: 9.8 active and then not active.
No other plugins are active.

  1. Made a new post.
  2. Wrote some words and the word WordPress.
  3. Selected the word WordPress and clicked the link icon.
  4. Added the link https://www.wordpress.org/
  5. Clicked Enter.
  6. Typed ffff after WordPress so it looked like this: WordPressffff.
  7. Noticed that only the word WordPress was linked. The ffff was not.

As it sounds like you have another result. It might have to do with your theme or a plugin conflict. Please retest using a default theme and no plugins (except Gutenberg) active to see if the error is still there.

Thnaks!

Note: See TracTickets for help on using tickets.