title: Sitecore MVC editable link in page editor
body: <p>I'm trying to output a link and link text from a custom model so it is editable in the page editor. It works fine normally but not in the page editor.
  In my model class i have 2 strings like this:</p>
  
  <pre><code>public string Link { get; set; }
  public string LinkText { get; set; }
  </code></pre>
  
  <p>I try to make the text editable in a repository like this:</p>
  
  <pre><code>model.LinkText = FieldRenderer.Render(item, "Link Text");
  model.Link = LinkManager.getItemUrl(item);
  </code></pre>
  
  <p>in my .cshtml file i am outputting the fields like this:</p>
  
  <pre><code>&lt;a href="@Model.Link&gt;@Model.LinkText&lt;a/&gt;
  </code></pre>
  
  <p>Am i going about this the wrong way or can i get this code to work with some tweaks ?</p>