I have added a new ContentArea to a page's model.
When the ContentArea is rendered in the view, the on page editing for the area does not work.
I am using PropertyFor.
Does anyone have any similar experiences with newly added ContentAreas not rendering as contentarea in one page editing?
Can you please add your code here so that we can look at the code because with the PropertyFor it should editable.
And please delete all the other duplicate questions.
Are you using a view model? In that case, the view model property name must match the page type property name to support on page editing without extra effort. If you really want a different property name on the view model, you have to create a connection between the view model property and the page type property in your controller:
var editHints = ViewData.GetEditHints<MyViewModelType, MyPageType>();
editHints.AddConnection(vm => vm.CustomContentAreaPropertyName, pageType => pageType.ContentAreaPropertyName);
If you're not using a view model, does the ContentArea property belong to currentPage?