Getting Started
Here I would like to give a simple example of Asp.Net MVC Application to integrate with CKEDITOR. First we are going to download CKEDITOR over this link Click Here for download. Once downloaded, unzip the folder (should be a single directory called "ckeditor") and copy to the root directory in the website or project.
Implementation
CKEditor need to be included "ckeditor.js" & "jquery.js" file in your RazorView or PartialView which is shown as below.
Now go to View, Inside this file we are using below code for display CkEditor in UI.
@Html.TextAreaFor(m => m.Description, new { @class = "ckeditor" id = txtDescription" })
In order to display Editor class 'ckeditor' is required.
Here i am not going in deep i just show you about ckeditor set in MVC Razor if you require full example with Image Upload option in CkEditor then you can contact me or email at mehulpatelk152@gmail.com
Here I would like to give a simple example of Asp.Net MVC Application to integrate with CKEDITOR. First we are going to download CKEDITOR over this link Click Here for download. Once downloaded, unzip the folder (should be a single directory called "ckeditor") and copy to the root directory in the website or project.
Implementation
CKEditor need to be included "ckeditor.js" & "jquery.js" file in your RazorView or PartialView which is shown as below.
Now go to View, Inside this file we are using below code for display CkEditor in UI.
@Html.TextAreaFor(m => m.Description, new { @class = "ckeditor" id = txtDescription" })
In order to display Editor class 'ckeditor' is required.
Here i am not going in deep i just show you about ckeditor set in MVC Razor if you require full example with Image Upload option in CkEditor then you can contact me or email at mehulpatelk152@gmail.com

No comments:
Post a Comment