can i add wrappers for editor templates ?

Topics: Customizing Orchard, Troubleshooting
May 22, 2014 at 4:30 PM
trying to add wrappers using shape table provider for both display and editor templates.

the following only works for display templates :
  public void Discover(ShapeTableBuilder builder)
        {
            builder.Describe("Content").OnDisplaying(displaying =>
            { 
                displaying.ShapeMetadata.Wrappers.Add("My_FormWrapper");
               
            });
        }
But i doesnt apply to editor templates (used by calling the buildeditor method ).

I also tried in handlers this but didn't work either :
  protected override void BuildEditorShape(BuildEditorContext context) {
            context.Shape.Metadata.Wrappers.Add("My_FormWrapper");
            base.BuildEditorShape(context);
           
        }
Is this intentional or a bug?
Any way to overcome this limitation?
Thank you
Giannis.