Fckeditor is an open source project on the SourceForge.Net, mainly to implement online web editors, official website is http://www.fckeditor.net, support ASP.NET, ASP, CLODFusion, PHP, Java, etc. in the server side Language and supports mainstream browsers such as IE 5 , Mozilla, Netscape. The latest version is 2.0 Beta 2, but currently 2.0 Beta does not support PHP, so I have selected 1.6 version. First we first go to http://sourceforge.net/projects/fckeditor/ to download fckeditor_1.6.zip and unzip it into your website subdirectory and change the folder name to fckeditor. Go to the fckeditor / directory, open the _Test / Directory, contain a variety of programming language to call the fckeditor method, where the file related to PHP has 2 files: Test.php // Submit the data page TestSubmit.php // Display data You can take a look at it, learn about the calling method of Fckeditord, below I have written a Test program: Php if ($ _ post ["add"]) {$ content = $ _ post ['editordefault']; ECHO $ content; // Variable $ Content is the content we edited in Fckeditord, here you can save it to the database}?>
Php // introduced online editor INCLUDE ("../ fckeditor / fckeditor. PHP ");?> head>