Php calls the fckeditor webpage editor method

Source: Internet
Author: User
The following code will be called in html & lt; scriptsrcfckeditorfckeditorjs & gt; & lt; script & gt; & lt; scripttypetext webpage effect & gt; functionshowfck () {varofckeditorn

The following code is to be called in html.

  1. Function showfck (){
  2. Var ofckeditor = new fckeditor ('content ');
  3. Ofckeditor. basepath = 'fckeditor /';
  4. Ofckeditor. toolbarset = 'basic ';
  5. Ofckeditor. width = '000000 ';
  6. Ofckeditor. height = '000000 ′;
  7. Ofckeditor. value = ";
  8. Ofckeditor. replacetextarea ();
  9. Document. getelementbyidx ("btnshow"). disabled = 'true ';
  10. Document. getelementbyidx ("btnshow"). style. display = 'none ';
  11. }

Today we will talk about how php calls code, for example:

  1. Include ("../editor/fckeditor. php ");
  2. $ Ofckeditor = new fckeditor ('fckeditor1 ');
  3. $ Ofckeditor-> basepath = '../editor /';
  4. $ Ofckeditor-> value = '';
  5. $ Ofckeditor-> width = '000000 ';
  6. $ Ofckeditor-> height = '20140901 ';
  7. $ Ofckeditor-> create ();
  8. ?>

If php wants to obtain the value, it can directly $ _ post ['fckeditor1.

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.