PHP call CKEditor? How to call ckeditor_php Tutorial

Source: Internet
Author: User
How to call CKEditor, the following small part to summarize the use of PHP call CKEditor editor and JS call CKEditor method, the other script calls the same method.

PHP Call FCKeditor

Place FCKeditor in the Web site root directory
Inside the php file, contains/fckeditor/ckeditor/"target=" _blank ">fckeditor.php file

Insert the following code in the page where you need to place the editor:

The code is as follows Copy Code
Contains the FCKeditor class
Include ("fckeditor/fckeditor.php");
Create a FCKeditor, table sole name called Jzleditor
$oFCKeditor = new FCKeditor ("Jzleditor");
Set Editor Path
$oFCKeditor->basepath = "fckeditor/";
$oFCKeditor->toolbarset = "Default";//Tool button
$oFCKeditor->value = $cont; ; Set initial content
$oFCKeditor->width= "100%"; Set the width of it
$oFCKeditor->height= "550px"; Set the height of it
$oFCKeditor->create ();
?>

Input content, after submission, in the processed file by $_post["Jzleditor" to obtain the input content

JS Call FCKeditor

CKEditor is very simple to use, first download CKEditor 3.6.1 (default is the PHP version), and then in the head of the call page, write down the following two segment JS:

The code is as follows Copy Code


Note: The content here is the name as follows: </p><p><textarea name= "Content" >ddd if it is version 3.6.2, the statement may be written as:

Ddd

Issues caused by version differences, please pay attention to this issue at runtime.

Get the corresponding value on the next page based on the name value content

http://www.bkjia.com/PHPjc/633142.html www.bkjia.com true http://www.bkjia.com/PHPjc/633142.html techarticle How to call CKEditor, the following small part to summarize the use of PHP call CKEditor editor and JS call CKEditor method, the other script calls the same method. PHP call ...

  • 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.