CKEditor for ASP.NET Sample — Adding the CKEditor for ASP.NET Control to a Page

If you want use the CKEditor for ASP.NET Control, you must add references to the project and register the control.
If you only intend to use the control on a single page, you can add a Register section to its source code:

<%@Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor"%>

If you intend to use the control on multiple pages, you can add the Register section in web.config. Insert the following code into the <system.web><pages><controls> section:

<add tagPrefix="CKEditor" assembly="CKEditor.NET" namespace="CKEditor.NET"/>

To insert the CKEditor for ASP.NET Control into a web page, use the following code:

<CKEditor:CKEditorControl ID="CKEditor1" BasePath="~/ckeditor" runat="server"></CKEditor:CKEditorControl>

The CKEditor instance below was inserted using the second method.