Is there any event when we add block to block editor?
What I try to do: when add block to Block Editor I want to refill some properties with default values for different blocks.
Hi!
Looks like there’s a feature called EditorModel Notifications which is documented here in the Umbraco docs. While I’ll admit I’ve not used it myself, it sounds like it provides the functionality you’re looking for here.
Hope that helps!
Thanks will look to this documentation. Strange that I not found it my self. At first look this is what I need.
Looks like this functionality is not available from v14. Here is a thread with discussion. Instead we supposed to use Property Value Preset. It is still not clear for me if I need to set default values for all properties in my document type how to do this?
Ah that’s a shame. I’ll follow that same Github discussion myself now, be interested to see where it gets to.
That new Property Value Preset documentation reads as if you can only control preset values based on what the property editor type is, which isn’t helpful in targeting specific properties.
Hope you find a solution as it’d be very useful!