I have an issue, I want to edit the block name in Preview in edit mode.
I tried these lines but the Block Name is still not editable:
<h3 @Html.EditAttributes(x => (x as IContent).Name)>
@Html.DisplayFor(x => (x as IContent).Name)
@Html.PropertyFor(x => ((IContent)x).Name)
Can anyone help me? Or if the Block Name is editable in Preview, can anyone explain help me?
The Name proeprty for blocks isn't coming from IContent. Because BlockData is not inheriting the IContent. PageData is inherits the IContent. For BlockData the Inheritance defined as
BlockData => ContentData => IContentData
Where as PageData => IContent => IContentData