In the index. php file, call its code and add the following code to the desired Editor:
<? Php
$ Fck = $ _ POST ["FCKeditor"];
If ($ fck! = "")
{
Echo htmlspecialchars ($ fck );
}
?>
<Html>
<Head>
<Title> fck test <title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>
</Head>
<Body>
<Form action = "index. php" method = "POST">
<? Php
// Reference the FCKeditor. php file. The basic classes and data structures are all here.
Include_once ("FCKeditor/fckeditor. php ");
// Create an instance of the FCKeditor object. After myFCKeditor is submitted, the receiving data page $ _ POST ['myfckeditor'] uses
$ FCKeditor = new FCKeditor ('myfckeditor ');
// The position of FCKeditor. the position here is the 'fckeditor' folder.
$ FCKeditor-> BasePath = './FCKeditor /';
// Tool button settings
$ FCkeditor-> ToolbarSet = 'default ';
// Set its width
$ FCKeditor-> Width = '000000 ';
// Set its height
$ FCKeditor-> Height = '300px ';
// Generate
$ FCkeditor-> Create ();
?>
</Form>
<Br>
<Input type = "submit" value = "submit">
</Form>
</Body>
</Html>
Download fckediter demo