-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Adding a link url via copy/paste doesn't work on previously formatted text #63434
Comments
Yes, I can confirm. This issue also happens on any previously formatted text. For example, the same thing happens when text is italicized or set to inline code. |
I was able to reproduce this issue, and it seems to occur when copying and pasting text with some inline formatting. fa222cded81ed1264aa1494a9de94310.mp4 |
I discovered that this problem was caused by the following PR: Commenting out this conditional statement seems to fix the problem, but it might have some side effects. Maybe @ellatrix knows something. |
@t-hamano do you want to try a PR and see what tests fail? |
We have a reusable block in our site that adds a |
I think this issue was resolved as a result of #63671 and is not reproducible in the latest Gutenberg, so I would like to close it. I think it will be important to see if we backport the fix for this issue to a WP6.6 minor release. See this comment. |
Description
For some of my content I add a link to text and then bold it. Sometimes, I bold it first and then add the link.
For a while now I noticed that copy/page over a highlight text didn't always work, and I finally chased down the source of this "misbehavior"
If the text is formatted in bold, highlighting and adding the link via copy/paste doesn't work anymore. It does\work when using the link button, but that makes the process two clicks longer.
See below video for illustration.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
Screen.Recording.2024-07-11.at.15.22.38.mov
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: