Changes between Initial Version and Version 3 of Ticket #57421
- Timestamp:
- 01/10/2023 06:16:16 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #57421
-
Property
Version
changed from
5.8
to -
Property
Type
changed from
defect (bug)
toenhancement
-
Property
Version
changed from
-
Ticket #57421 – Description
initial v3 1 This trac ticket is part 1 of a larger discussion spanning multiple issues, about the **potential issues plugin authors may face when developing blocks that rely on the @wordpress/editor dependency**. 2 3 - This trac ticket is **part 1**: it suggests an option to make conditional asset enqueuing easier in the different block editors. 4 - In **part 2**, I would like to suggest an option to declare support for specific editors at block registration. Discussion about this is happening in [https://github.com/WordPress/gutenberg/issues/46900 this Gutenberg issue]. 5 6 ---- 7 1 8 When enqueuing assets for a block registered in a plugin, one can rely on `block.json`, or hook into the `enqueue_block_editor_assets` hook to enqueue necessary scripts and styles in the block editor. 2 9