Skip to content

Conversation

@EvanHerman
Copy link
Contributor

@EvanHerman EvanHerman commented Apr 7, 2025

Description

Prevent editor crash when in patterns/media tabs in the block inserter and updating the design styles inside of the CoBlocks labs -> Site Design component.

Types of changes

Bug fix (non-breaking change which fixes an issue)

How has this been tested?

Tested this in the browser, recreating the steps outlined to crash the editor. The editor no longer crashes, however the styles will not update inside of the patterns/media tabs. This is due to changes in the editor in WordPress 6.7.2 and how the content is injected into an iframe and styles are transferred between the iframe and default editor. This will be reverted in 6.8, but will still effect users running the Gutenberg plugin.

Acceptance criteria

Reason for the PR is the prevent the editor from crashing when updating the styles under certain circumstances.

Checklist:

  • My code is tested
  • My code follows accessibility standards
  • My code has proper inline documentation
  • I've added proper labels to this pull request

@EvanHerman EvanHerman added the [Type] Bug Something that is not working as expected label Apr 7, 2025
@EvanHerman EvanHerman self-assigned this Apr 7, 2025
Copy link
Member

@AnthonyLedesma AnthonyLedesma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. I can no longer crash the editor with these changes in place.

@EvanHerman EvanHerman merged commit 7aadfe6 into master Apr 9, 2025
52 checks passed
@EvanHerman EvanHerman deleted the fix-WPEX-3930 branch April 9, 2025 18:20
@EvanHerman EvanHerman added this to the 3.1.15 milestone Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Bug Something that is not working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants