Today, I am going to describe an easy way to integrate CkEditor with ASP.NET web projects.
If you’ve not heard of CKEditor, it’s a free and open-source rich text HTML editor for use on websites such as this one. In fact, I’m typing into a CKEditor text box right now as I write this article via our administration back-end of the website. It’s useful for Content Management Systems, Blogs, or anywhere else where you need you users to be able to enter rich text and change styles such as font, size and colour but without the need for technical expertise. Even for those of us who are happy using HTML, it is still a far more elegant and professional-looking way of entering content into a website.
Simply Follow the following steps :
Create a new ASP.NET website and name it as Demo_application.
Download Ckeditor from here and Extract Ckeditor to the root Folder of your Application.
Add CkEditor TextBox to your .aspx page like below with ID "editor1".
<textarea id="editor1" name="editor1" rows="10" cols="80">
This is my textarea to be replaced with CKEditor.
Use the CKEDITOR.replace() method to replace the existing <textarea> element with CKEditor.
View Full Code Below
Debug your Application to see the results.