KindEditor editor call method

Source: Internet
Author: User
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:

  1. Script/This is in the header of the document,
  2. "Font-size: 12px; margin-bottom: 5px; margin-left: 5px;">
  3. Var editor = new KindEditor ("editor ");
  4. Editor. hidenName = "content ";
  5. Editor. skinPath = "./skins/tiny/"; // you can specify the skin path.
  6. Editor. iconPath = "./icons/"; // Picture
  7. Editor. imageAttachPath = "./attached /";//
  8. Editor. imageUploadCgi = "upload_cgi/upload. php ";
  9. Editor.css Path = "common.css ";
  10. Editor. editorWidth = "99% ";
  11. Editor. editorHeight = "270px ";
  12. Editor. show ();
  13. Function KindSubmit (){
  14. Editor. data ();
  15. }
  16. Script

That's easy.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.