i am trying to set the default value for newly creating component through eventhandler as below
EventSystem.Subscribe<Component, LoadEventArgs>(LoadComponentData,EventPhases.TransactionCommitted);
private void LoadComponentData(Component component, LoadEventArgs args, EventPhases phases)
{
logger.warning("component.Content" + component.Content);
}
but i am getting empty value for component.Content.
what exactly i required is, Before newly created component completely loads to the author, i need to set the default value for the component.(Note: i am exlicitly saying for the newly creating component,not existing opening)
can any one help on this.