Skip to content

Instantly share code, notes, and snippets.

@mxmissile
Created September 21, 2011 21:48
Show Gist options
  • Select an option

  • Save mxmissile/1233418 to your computer and use it in GitHub Desktop.

Select an option

Save mxmissile/1233418 to your computer and use it in GitHub Desktop.
Editor Html Convention
public class InputWrapperConvention : HtmlConventionRegistry
{
public InputWrapperConvention()
{
Editors.Always.Modify(h => h.WrapWith("div").AddClass("editor-field"));
}
}
//Added in the Registry
HtmlConvention<InputWrapperConvention>();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment