How to add a new attribute to core wp block editor without npm?
You don’t need block attributes to do that! Core has an alternative that provides a superior experience, block variants. Block variants let you reuse an existing block, but declare a variant which has predefined block attributes that match your use case. For example, all embeds are variants of the embed block, even though they have … Read more