Home >Web Front-end >HTML Tutorial >Use of html editor kindeditor_html/css_WEB-ITnose

Use of html editor kindeditor_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:48:501206browse

1. Download the latest version of KindEditor.

2. Place kindeditor in your website directory, any directory, as long as the path is set correctly!

3. Add a TEXTAREA input box where you want to display the editor. If there is already a TEXTAREA, just add the ID to the attribute.


4. Add a reference to kindeditor on the corresponding page and add the following code:



src=..... This changes depending on where your kindeditor is placed.

Get the text content of textarea:
1. In
Add hidden input and button later, the code is as follows:

Add event handling code
1. The first is the client code, which is executed before the server code. The code is as follows:


function save()
{
var s = KE.util.getData("content_1");
         s = KE.util.escape(s); Yes, Just keep the value of content_1_1 when saving.
2. Server code, the code is as follows:

protected void Button1_Click(object sender, EventArgs e)

{
Write the server code you want to execute here, because it has already been It's worth it.

}





Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn