How to add ckeditor in asp.net mvc
How to add ckeditor in asp.net mvc?
Solution
1) Copy CkEditorFolder
2) Add refrence of Js file
<script src="../../ckeditor/ckeditor.js"></script>
3) in html view add control e.g
<textarea class="form-control" name="BriefDescription" id="BriefDescription" rows="3" placeholder="Brief Description">@Model.BriefDescription</textarea>
4) Add js function that will convert input control to editbox
<script>
// Replace the <textarea id="editor1"> with a CKEditor
// instance, using default configuration.
CKEDITOR.replace('BriefDescription');
</script>
5 ) in mvc controller post action
Set input validate false
Share This with your friend by choosing any social account