title: TinyMCE.MVC.Jquery won't show?
body: <p>So working in visual studio 2012 I downloaded the TinyMCE.MVC.JQuery package and installed it using NuGet. Once in stalled i followed this tutorial to set it up:</p>
  
  <p><a href="http://www.tugberkugurlu.com/archive/tinymce-html-text-editior-and-asp-net-mvc-setting-it-up-has-become-easy-with-nuget" rel="nofollow">http://www.tugberkugurlu.com/archive/tinymce-html-text-editior-and-asp-net-mvc-setting-it-up-has-become-easy-with-nuget</a></p>
  
  <p>My project is MVC3 and was already in exsistance so there are slight alterations. </p>
  
  <p>This is my Controller create function:</p>
  
  <pre><code> //
      // GET: /Pages/Create
  
      public ActionResult Create()
      {
          return View();
      } 
  
      //
      // POST: /Pages/Create
  
      [HttpPost, ActionName("Create")]
      public ActionResult Create(Database_Table database_table)
      {
          if (ModelState.IsValid)
          {
              db.Database_Table.Add(database_table);
              db.SaveChanges();
              return RedirectToAction("Index");  
          }
  
          return View(database_table);
      }
  </code></pre>
  
  <p>My Edit:</p>
  
  <pre><code>  //
      // GET: /Pages/Edit/5
  
      public ActionResult Edit(int id)
      {
          Database_Table database_table = db.Database_Table.Find(id);
          return View(database_table);
      }
  
      //
      // POST: /Pages/Edit/5
  
      [HttpPost, ActionName("Edit")]
      public ActionResult Edit(Database_Table database_table)
      {
          if (ModelState.IsValid)
          {
              db.Entry(database_table).State = EntityState.Modified;
              db.SaveChanges();
              return RedirectToAction("Index");
          }
          return View(database_table);
      }
  </code></pre>
  
  <p>This is my Model class:</p>
  
  <pre><code>public class Pages
  {
      public int PageID { get; set; }
      public string PageURL { get; set; }
  
      [UIHint("tinymce_jquery_full"), AllowHtml]
      public string PageHTML { get; set; }
  
  
      public class DatabaseContext : DbContext
      {
          public DbSet&lt;Database_Table&gt; Pages { get; set; }
      }
  }
  </code></pre>
  
  <p>This is the Edit View:</p>
  
  <pre><code>@using (Html.BeginForm()) {
  
  
  @Html.ValidationSummary(true)
  &lt;fieldset&gt;
      &lt;legend&gt;Pages&lt;/legend&gt;
  
      &lt;div class="editor-label"&gt;
          @Html.LabelFor(model =&gt; model.PageURL)
      &lt;/div&gt;
      &lt;div class="editor-field"&gt;
          @Html.EditorFor(model =&gt; model.PageURL)
          @Html.ValidationMessageFor(model =&gt; model.PageURL)
      &lt;/div&gt;
  
      &lt;div class="editor-label"&gt;
          @Html.LabelFor(model =&gt; model.PageHTML)
      &lt;/div&gt;
      &lt;div class="editor-field"&gt;
           @Html.EditorFor(model =&gt; model.PageHTML)
          @Html.ValidationMessageFor(model =&gt; model.PageHTML)
      &lt;/div&gt;
  
  
  
      &lt;p&gt;
          &lt;input type="submit" value="Save" /&gt;
      &lt;/p&gt;
  </code></pre>
  
  <p>And both of these are referenced in the _Layout.cshtml:</p>
  
  <pre><code>&lt;script src="@Url.Content("~/Scripts/jquery-1.7.1.js")" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="@Url.Content("~/Scripts/tinymce/jquery.tinymce.js")" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>Sorry if I am being stupid but when I run the edit page the WYSIWYG editor doesnt display, its just a standard textbox. Can anyone see my problem?</p>