A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

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?

Best regards

Jesper

#88363
Jul 09, 2014 16:09
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.