Home >Web Front-end >HTML Tutorial >Use of html editor kindeditor_html/css_WEB-ITnose
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:
{
Write the server code you want to execute here, because it has already been It's worth it.