Reproduced on the official website: http://docs.cksource.com/CKEditor_3.x/Developers_Guide/ASP.NET/Integration_Beginners
Here we will share with you!
First go to the official website to download the latest installation package: http://ckeditor.com/download
Find the download under Asp.net to download, and then follow the example created on the official website to perform step-by-step operations.
The following describes the steps on the official website. Copy them here:
Write these integration commandsIn MindAbsolutely beginnerAnd description run ASP. Net Control in the ckeditor details describes all the steps required throughout the process.
If you want to integrate it into the ckeditor on the ASP. NET pageCkeditorOfficialDownload websiteGoDownload the latest versionCkeditor 3.xAndASP. NET controls ckeditor.
Decompress the two installation packages to the desired location and start Visual Studio.Note that this file is based on Visual Studio 2010 and Visual C #, but does not run ckeditor controlled by ASP. NET. The steps are different in other versions of Visual Studio and Visual Basic.Programming Language.
Create a new ASP. NET Website
SelectNew WebsiteSlave commandFile"Menu (or useShift Key + ALT + n key).
Create a new website in Visual Studio 2010
SelectASP. NET empty website,For the template that has been installed for the selected programming language, click"Confirm".
Select ASP. NET empty website in Visual Studio 2010
Add a new web form
Because the website is indeed empty, you need to add some default content to it.Open the context menu of the solution and select"Add new item"(OrPress Ctrl + Shift + oneKeyboard shortcut ).
Add a new project to the ASP. NET Website in Visual Studio 2010
Select nowOfWebTableFor the template of the selected programming language, the page named (In our exampleDefault. aspx), And click"Add".
Create a new web form in Visual Studio 2010
Add a reference ckeditor ASP. NET Control
The default empty website is now ready.It is the time when the reference is added to the ckeditor of the ASP. NET control.Open the context menu of the solution, andSelectAdd reference.
Add reference in Visual Studio 2010
Go to"Browse"Tab, Browse to the location where you previously decompressed the ckeditor ASP. NET control file.GoOfBin\ Release \Folder.Ckeditor. net. dllFile, and then clickOK.
Add ckeditor for ASP. NET reference in Visual Studio 2010
The ckeditor control of ASP. NET is now available on the ASP. NET Website, as shown in.
Reference ASP. Net Control ckeditor in Visual Studio 2010Add a ckeditor File
Now, you need to add the ckeditor file to the solution.Edit the file, decompress it from the installation package, and paste it to the application.ProgramDirectory.The solution should be similar to the reference of ASP. Net control items and ckeditor file ckeditor tree.
Add the ckeditor file to Visual Studio 2010.
The ckediter folder here is in Download ckeditor_aspnet_3.6.2 \ _ samples \ ckeditor and drag the entire folder to the project.
Ckeditor added to page
All resources currently provided.This is a time to open default. aspxFile,And register as ASP. NET to control ckeditor.InSource codeAdd in Mode<% @ %>Section 1The following calls under:
<% @Registered Member Conference"Ckeditor. Net"Namespace="Ckeditor. Net"Tagprefix="Ckeditor"%>
This registers the control on the ASP. NET page with ckeditor.Insert it to the page and use the following example to call the editor in the body:
<Ckeditor:Ckeditorcontrol No.="Ckeditor1"Runat="Server"></Ckeditor:Ckeditorcontrol>
Page SourceCodeIt will look like this:
Source code on Visual Studio 2010 page Add a tab in the tool item. Then browse the DLL file of ckeditor. The specific steps are not described here. I believe you know!
The page is now ready-this is the running time.UseStart debuggingCommand orF5Open it with a keyboard shortcut.When you run the program for the first time, Visual Studio prompts you to enable the debugging project.
Debugging prompt in Visual Studio 2010
You clickOKAfter, ASP. NET Website will be open in your default browser.
Add a ckeditor instance to the page
The ckeditor instance has been successfully added to the page and can be used at any time.
I wish you a successful test. If you have any problems, leave a message to solve them. Welcome to join us!