Expose embed block creation function #13490
Labels
[Block] Embed
Affects the Embed Block
[Feature] Extensibility
The ability to extend blocks or the editing experience
[Type] Enhancement
A suggestion for improvement.
Is your feature request related to a problem? Please describe.
I would like a way to register new embed blocks simply via a public API. Currently, the only way to create a new embed seems to be replicating all related core code.
Describe the solution you'd like
I would like to see the function
getEmbedBlockSettings
exported to a public API.Describe alternatives you've considered
As mentioned, so far the alternatives would be to replicate all functionality in
getEmbedBlockSettings
andgetEmbedEditComponent
, along with all dependencies. This would be very inefficient and not inherit any Core improvements automatically, requiring maintenance.The text was updated successfully, but these errors were encountered: