MVC
- While in Visual Studio go to Tools > Library Package Manager > Package Manager Console.
- In the command window type install-package TinyMCE.MVC and hit enter.
- In the command window type install-package TinyMCE.MVC.Sample and hit enter.
- Hit F5.
- In the URL enter TinyMCESample and you should see the editor.
- In your model make sure you have a reference to using System.Web.Mvc;
- In your model put the data annotation as follows: [AllowHtml, UIHint("tinymce_jquery_full")] public string Content { get; set; }
- In your View add a link to the JavaScript file tiny_mce.js.
MVC (jQuery)
0 comments:
Post a Comment