Changing rendering of episerver property in edit mode
Vote:
Hi!
I am trying to change how EPiServer renders text-fields (used for article headers etc) in editmode.
So far, I have created the following editordescriptor:
[EditorDescriptorRegistration(TargetType = typeof(string), UIHint = CustomUIHints.CustomInputFieldRendering)]
public class CustomInputFieldEditor : StringEditorDescriptor
{
public string Style { get; set; }
public CustomInputFieldEditor()
{
this.Style = "width:582px;";
}
public override void ModifyMetadata(ExtendedMetadata metadata, IEnumerable attributes)
{
base.ModifyMetadata(metadata, attributes);
metadata.EditorConfiguration["style"] = this.Style;
}
}
and this works great!
However, when I perform on-page-editing inside EPiServer I get the same inputbox on the right side of the screen as if I was editing a textarea property (UIHint.Textarea). How do I get rid of this inputbox?
Hi!
I am trying to change how EPiServer renders text-fields (used for article headers etc) in editmode.
So far, I have created the following editordescriptor:
and this works great!
However, when I perform on-page-editing inside EPiServer I get the same inputbox on the right side of the screen as if I was editing a textarea property (UIHint.Textarea). How do I get rid of this inputbox?
Best regards
Jesper