Reputation: 2375
Saw this post at CodeProject for FCKEditor. Can someone explain what about the new version?
Upvotes: 13
Views: 29728
Reputation: 388
In MVC, you can not use CKEDITOR.DLL and its tags to, So you need to use ckeditor.js file.
Steps to use CKeditor in MVC3.
Upvotes: 0
Reputation: 5001
It's pretty easy to do actually. First download the latest code from the website and extract it to a directory in your project (I choose /Scripts/ckeditor). Then in your view, use the same code as in the "complete sample" in this link and it should work.
Basically, the important steps are:
Place the:
<script type="text/javascript"> CKEDITOR.replace( 'editor1' ); </script>
RIGHT AFTER your textarea and make sure the id of the textarea is the same in the CKEDITOR.replace() statement.
Upvotes: 20