Is it possible to access child elements of ContentArea children for manipulating their attributes? I have CustomContentAreaRenderer with overriden RenderContentAreaItem method. I have CurrentItem, its index and content but can't access to its children.
Has anybody faced similar problem?
What do you mean with ContentArea children? You should probably just manipulate the wrapping element for the whole property and the wrapping element for each item in the content area renderer. If you want to manipulate anything lower in the hierarchy you should do that in each content item renderer.
If I understand you correctly, then the easiest solution would be to override
void BeforeRenderContentAreaItemStartTag(TagBuilder tagBuilder, ContentAreaItem contentAreaItem)
and then add the attributes to the tagBuilder.
Thank you, Johan!