Skip to content

Blocks: Image and Gallery blocks depend on deprecated RichText events #6944

Closed

Description

Related: #6286
Proposed fix: #6871

Note: There's already a proposed fix in #6871, but marking this as a bug which ought to be resolved before a 3.0 release where the deprecated functionality is slated to be removed.

The changes in #6286 cause TinyMCE event forwarding to be deprecated. However, some core blocks (namely, Image and Gallery) depend on the onFocus event which is no longer explicitly called by the RichText component.

We should either:

  • Restore onFocus handling to RichText
  • Refactor Image and Gallery blocks to avoid relying on onFocus

Additionally, we should audit other blocks which may depend on this or other events no longer passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

[Priority] HighUsed to indicate top priority items that need quick attention[Type] BugAn existing feature does not function as intended

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions