Ckeditor User Manual

Source: Internet
Author: User

Ckeditor user manual encountered some problems when using ckeditor, and now it is organized into a manual so that you can read it at any time. on the You need to create a new instance. If the ckeditor instance already exists if (ckeditor. instances ['textarea _ name']) {ckeditor. instances ['textarea _ name']. destroy ();} ckeditor. replace ('textarea _ name'); function loadeditor (ID) {var instance = ckeditor. instances [ID]; If (Instance) {ckeditor. remove (instance);} ckeditor. replace (ID);} var instance = Ckeditor. Instances ['test']; If (Instance) {ckeditor. Remove (Ckeditor. Instances ['test'] );} If (ckeditor. Instances [editorname]) delete ckeditor. Instances [editorname]; ckeditor. Replace (editorname );
Obtain the value of ckeditor.
VaR editor = ckeditor. replace ('editor1'); editor.doc ument. getbody (). gettext (); // obtain the plain text editor.doc ument. getbody (). gethtml (); // obtain the HTML text ckeditor. instances. content. getdata () = "") content is the ckeditor value set by the name of textarea. instances. content. setdata ("cccto"); var editor = ckeditor. replace ("content"); Editor. setdata ("cccto ");
Insert ckeditor. Instances. Message. inserthtml ('')

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.