The KindEditor editor calls the method. This editor can be used in any language. It is a pure js editor, but its default editing is utf-8. If it is edited by gb2312, it is KindEditor. open js and save it as gb2312. You can use it in the gb2312 document. Otherwise, garbled characters may occur.
The following describes how to call kindeditor. We first call KindEditor. js in the document to be edited. Let's take an example:
<Script type = "text/javascript" src = "KindEditor. js"> </script>/This is in the header of the document,
<Div style = "font-size: 12px; margin-bottom: 5px; margin-left: 5px;"> </div>
<Input type = "hidden" name = "content">
<Script type = "text/javascript">
Var editor = new KindEditor ("editor ");
Editor. hidenName = "content ";
Editor. skinPath = "./skins/tiny/"; // you can specify the skin path.
Editor. iconPath = "./icons/"; // Picture
Editor. imageAttachPath = "./attached /";//
Editor. imageUploadCgi = "upload_cgi/upload. php ";
Editor.css Path = "common.css ";
Editor. editorWidth = "99% ";
Editor. editorHeight = "270px ";
Editor. show ();
Function KindSubmit (){
Editor. data ();
}
</Script>
That's easy,
Note: For reprint, please describe the original site www.111cn.net