title: Extend Html.Editor()
body: <p>I need to extend <code>Html.Editor()</code> so base on some attributes in model to generate HTML. Example:</p>
  
  <pre><code>public class Person
  {
      public string Name { get; set; }
  
      [DisplayFor(Role.Admin)]
      public string Surname { get; set; }
  }
  </code></pre>
  
  <p>In this case the generated HTML will not be displayed in <code>View</code> if user is different from admin.</p>