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 opened by KindEditorjs, save it as gb2312 and you can use it in the gb2312 document.
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/This is in the header of the document,
- "Font-size: 12px; margin-bottom: 5px; margin-left: 5px;">
- 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.