Make WordPress Core

Changes between Initial Version and Version 3 of Ticket #57421


Ignore:
Timestamp:
01/10/2023 06:16:16 PM (2 years ago)
Author:
ironprogrammer
Comment:

Thanks for the report, @jeherve! I've added the requested text to the top of the ticket description, and marked this as an enhancement for clarity.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #57421

    • Property Version changed from 5.8 to
    • Property Type changed from defect (bug) to enhancement
  • Ticket #57421 – Description

    initial v3  
     1This 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
    18When 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.
    29