-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Classic: Infinite content duplication loop when wrapping with anchor tag #29338
Comments
I can reproduce this in Gutenberg 10.1.0-rc.1 in Chrome Wrapping the shortcode in a tag that has an attribute seems to affect the code editor. So, for example. wrapping with an Or wrapping with a So this:
Becomes this:
The magic happens in autop(). Maybe some of the regexs need to take the presence of attributes into account ? |
I have this same issue! Any ideas how to get around it? My entire page is unusable because its just stuck in the infinite loop. How can I stop the loop and restructure the html so it doesn't start again? OR is an update going to come out soon that will fix it? |
Closing as duplicate of #29988. |
Description
Using the Classic block, when manually wrapping a captioned image with an anchor tag via the Code Editor, the anchor starts duplicating indefinitely after exiting the Code Editor and toggling back in. This can potentially lead to running out of RAM and making the post completely uneditable.
Step-by-step reproduction instructions
Expected behaviour
Content never duplicates itself.
Screenshots or screen recording
Screen.Recording.2021-02-25.at.13.39.49.mov
WordPress information
Device information
The text was updated successfully, but these errors were encountered: