Refer to a
First to:http://www.fckeditor.netTo download FCKeditor
Put it in the site root directory.
Streamlined Description:
Delete all files and folders that start with "_"
Remove languages other than Chinese and English in the language pack
Delete folders other than the default skin in the skin directory
Files in filemanager/browser/default/connectors/directory other than PHP
Files in filemanager/upload/directory other than PHP
Expression folder and expression button
Configuration Description:
fckeditor.php:
BasePath is the default FCKeditor directory, or it can be specified at the time of the call.
Fckconfig.js:
Autodetectlanguage recommends shutting down and manually specifying the default language in DefaultLanguage: ZH-CN.
ToolbarSets fckeditor function button, can be customized.
_filebrowserlanguage,_quickuploadlanguage specify files to browse and upload the language used, I specify PHP.
editor\filemanager\browser\default\connectors\php\config.php
editor\filemanager\upload\php\config.php
$Config [' Enabled '] is allowed to upload
$Config [' Userfilespath '] default upload path, you can change the directory that must be built in the appropriate directory.
Configuring the FCKeditor Toolbar feature button can be easily customized, and you can customize it according to your needs in FCKeditor's profile fckeditor\fck_config.js, adding a similar config.toolbarsets[ "name"] = []; (Here the contents of the brackets inside the custom) only use $ofckeditor->toolbarset = ' Default ' instead of $ofckeditor->toolbarset = ' name '.
Toolbar Feature Description:
Function name
|
Meaning
|
Function name
|
Meaning
|
Editsource
|
Display HTML source code
|
Strikethrough
|
Delete Line
|
Save
|
Save
|
Subscript
|
Subscript
|
NewPage
|
Create a new blank page
|
Superscript
|
Superscript
|
Preview
|
Preview
|
Justifyleft
|
Left-aligned
|
Cut-and
|
Shear
|
Justifycenter
|
Center Alignment
|
Copy
|
Copy
|
Justifyright
|
Align Right
|
Paste
|
Paste
|
Justifyfull
|
Justify justification
|
Pastetext
|
Plain text paste
|
Insertorderedlist
|
Automatic numbering
|
Pasteword
|
Paste from Word
|
Insertunorderedlist
|
Project symbol
|
Print
|
Print
|
Outdent
|
Reduce indentation
|
SpellCheck
|
Spell check
|
Indent
|
Increase Indent
|
Find
|
Find
|
Showtableborders
|
Show Table Line
|
Replace
|
Replace
|
ShowDetails
|
Show Details
|
Undo
|
Revoke
|
Form
|
Add Form Action
|
Redo
|
Restores
|
Checkbox
|
check box
|
SelectAll
|
Select All
|
Radio
|
radio button
|
Removeformat
|
Remove formatting
|
Input
|
Single-line text Box
|
Link
|
Insert/Edit Link
|
Textarea
|
Scrolling text box
|
Removelink
|
Remove connection
|
Select
|
Drop down Menu
|
Anchor
|
Anchor Point
|
Button
|
Button
|
Image
|
Insert/Edit Picture
|
ImageButton
|
Picture buttons
|
Table
|
Insert/Edit Table
|
Hidden
|
Hide
|
Rule
|
Insert horizontal Line
|
Zoom
|
Show scale
|
Specialchar
|
inserting special characters
|
Fontstyleadv
|
System fonts
|
Universalkey
|
Soft keyboard
|
FontStyle
|
Font style
|
Smiley
|
Insert Emoticons
|
Fontformat
|
Font formatting
|
About
|
About
|
Font
|
Font
|
Bold
|
Bold body
|
FontSize
|
Font size
|
Italic
|
Italic body
|
TextColor
|
Text color
|
Underline
|
Underline
|
BgColor
|
Background color
|
How to use:
test.php file
<form action= "./action.php" method= "post" target= "_blank" >
<?php
include_once ("fckeditor/fckeditor.php");
$sBasePath= ' http://127.0.0.1/FCKeditor/';
$oFCKeditor= newFCKeditor(' input ');
$oFCKeditor->BasePath= $sBasePath;
$oFCKeditor->Width= ' 100% ';
$oFCKeditor->Height= ' 100px ';
$ofckeditor->toolbarset= ' Default ';
$oFCKeditor -> Value = ' Hello world! ' ;
echo $oFCKeditor->createhtml();
?>
<input type= "Submit" value= "OK" >
</form>
action.php file
<?php
if (Isset ($_post) )
$postArray=&$_post;
foreach ($postArrayAs$sForm=>$value)
{
$postedValue=Htmlspecialchars(stripslashes($value) ) ;
Echo$postedValue;
An additional processing statement.
?>
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////
Reference two
Using FCKeditor2.3.2 Configuration in PHP
FCKeditor2.3.2 Online Editor is very easy to use, fully support file upload. Today, Baidu was finally finished in the afternoon. Download FCKeditor2.3.2 and extract to FCKeditor.
1Save space by deleting unnecessary files first. Any file that starts with _ such as _samples,_testcases and some of the unavailable. asp,. jsp,. cfm files.
2Modify Fckconfig.js
Fckconfig.autodetectlanguage = true;//whether the language is automatically detected
Fckconfig.defaultlanguage = ' ZH-CN ';//Set Language
Fckconfig.skinpath = Fckconfig.basepath + ' skins/default/'/Set skin
fckconfig.tabspaces = 1;//tab is valid
Fckconfig.toolbarstartexpanded = true;//edit toolbar appears, wait for "expand Toolbar" to appear
Fckconfig.fontnames = ' song body; bold; official script; italics _gb2312; Arial; Comic Sans MS; Courier New; Tahoma; Times New Roman; Verdana ';//Add Chinese font
Modify Fckeditor\editor\css\fck_editorarea.css
Set default font and size
Body, TD
{
Font-family:arial, Verdana, Sans-serif;
font-size:14px;
}
3About File Upload settings
Modify Fckconfig.js
var _filebrowserlanguage = ' php '; ASP | aspx | CFM | Lasso | Perl | Php
var _quickuploadlanguage = ' php '; ASP | aspx | CFM | Lasso | Php
Modify fckeditor\editor\filemanager\browser\default\connectors\php
$Config [' Enabled '] = true;
$Config [' userfilespath '] = '/userfiles/';//Set up the uploaded folder, you can specify it yourself
Modify fckeditor\editor\filemanager\upload\php
$Config [' Enabled '] = true;
$Config [' usefiletype '] = true;
$Config [' userfilespath '] = '/userfiles/';
4When you introduce an online editor, just
<?php
Include ("fckeditor/fckeditor.php");
$oFCKeditor = new FCKeditor (' FCKeditor1 ');//instantiation
$oFCKeditor->basepath = ' fckeditor/';//This path must be consistent with the introduction path above, or it will error: Could not find the fckeditor.html page
$oFCKeditor->value = ';
$oFCKeditor->width = ' 100% ';
$oFCKeditor->height = ' 300 ';
$oFCKeditor->create ();
?>
JS with alert (fckeditorapi.getinstance (' FCKeditor1 '). Getxhtml (true) to get the value of the FCKeditor1;
PHP uses $_post[' FCKeditor1 ' to get the FCKeditor1 value.
Reference Three
FCKeditor is an open source project above SourceForge.net, mainly to realize the function of online web editor, the official website ishttp://www.fckeditor.net, support the ASP.net, ASP, clodfusion, PHP, Java and other languages on the server side, and support the mainstream browsers such as IE 5+, Mozilla, Netscape and so on. Currently the latest version of 2.0 Beta 2, but currently 2.0 beta version does not support PHP, so I chose to use the 1.6 version.
First, we'll go first.http://sourceforge.net/projects/fckeditor/Download the Fckeditor_1.6.zip and unzip it to your site subdirectory and change the folder name to FCKeditor. Into the fckeditor/directory, open the _test/directory, which contains a variety of programming languages to invoke the FCKeditor method, where PHP-related files have 2 files:
test.php//Submit data page
testsubmit.php//Display data page
You can take a look at the Fckeditord call method, and here's a test program I've abbreviated:
<?php
if ($_post["ADD"]) {
$Content =$_post[' Editordefault '];
Echo $Content;
Variable $content is what we edit in the Fckeditord, which can be saved to the database
}
?>
<html>
<head>
<?php
Introducing the online editor
Include (".. /fckeditor/fckeditor.php ");
?>
</head>
<body>
<br>
<form action= "<?php echo $_server[' php_self ';?>" method= "POST" language= "JavaScript" >
<?php
$oFCKeditor = new FCKeditor;
FCKeditor directory, [B:91BEB51ADF] This path must be consistent with the introduction path above, or it will error: Can not find the fckeditor.html page [/B:91BEB51ADF]
$oFCKeditor->basepath = '.. /fckeditor/';
Instantiate the FCKeditor
$oFCKeditor->createfckeditor (' Editordefault ', ' 100% ', 300);
?>
<input type= "Submit" Name= "ADD" value= "submitted" >
</form>
</body>
</html>
From the above example we can see that to use FCKeditor, we first want to perform
Include (".. /fckeditor/fckeditor.php "); statement to refer to FCKeditor. And then execute
$oFCKeditor = new FCKeditor;
$oFCKeditor->basepath = '.. /fckeditor/';
$oFCKeditor->createfckeditor (' Editordefault ', ' 100% ', 300);
To instantiate the FCKeditor, and then add a line if you are editing the page:
$Content can be data read from a database
$oFCKeditor->value = $Content;
By default, upload picture function only corresponds to ASP way, want to realize in PHP upload file, also have to fckeditor configuration file to modify. Open/Fckeditor/js/fck_config.js (this is the FCKeditor main configuration file), navigate to the bottom section of the file that is//commented out of the content, will
//##
# # Image Browsing
//##
Config. ImageBrowser = true;
Custom Page URL
Config. Imagebrowserurl = config. BasePath + "filemanager/browse/sample_html/browse.html";
Config. Imagebrowserurl = config. BasePath + "filemanager/browse/sample_php/browse.php";
Config. Imagebrowserurl = config. BasePath + "filemanager/browse/sample_jsp/browse.jsp?type=img";
Config. Imagebrowserurl = config. BasePath + "filemanager/browse/sample_asp/browse.asp";
//##
# # Image Upload
//##
Config. Imageupload = true;
Page that effectivelly upload the image.
Config. Imageuploadurl = config. BasePath + "filemanager/upload/asp/upload.asp";
Config. Imageuploadurl = config. BasePath + "filemanager/upload/aspx/upload.aspx";
Config. Imageuploadurl = config. BasePath + "filemanager/upload/cfm/upload.cfm";
Config. Imageuploadurl = config. BasePath + "filemanager/upload/php/upload.php";
Config. Imageuploadurl = config. BasePath + "filemanager/upload/jsp/upload.jsp";
To
//##
# # Image Browsing
//##
Config. ImageBrowser = true;
Custom Page URL config.
Imagebrowserurl = "filemanager/browse/sample_html/browse.html";
Config. Imagebrowserurl = config. BasePath + "filemanager/browse/sample_php/browse.php";
//##
# # Image Upload
//##
Config. Imageupload = true;
Page that effectivelly upload the image.
Config. Imageuploadurl = config. BasePath + "filemanager/upload/php/upload.php";
Finally, 2 more files are modified:
/fckeditor/filemanager/upload/php/upload.php
Line 22nd
$UPLOAD _base_url = '/userimages/';
/fckeditor/filemanager/browse/sample_php/browse.php
Line 20th
$IMAGES _base_url = '/fckeditor/userimages/';
These two definitions of which directory to upload to the picture, you can define, but make sure that the directory exists, or upload pictures will be an error.
Then we put the FCKeditor in the directory. asp,. JSP,. CFM Files and _test, _ ASPNET, _developers, _docs, _jsp directories are eliminated to save space. Well, the basic use of fckeditor is here, we are interested in the site to see the effect:http://www.shaof.com。
Add:
The FCKeditor official website notes that FCKeditor currently supports 3 types of browsers: Ie5+,mozilla and Netscape. But in the experiment found that the use of IE5.0 is not supported image upload function, only the IE upgrade to 5.5 or 6.0 to support the image upload function. For just out of Mozilla Firefox 1.0 RC1 and Mozilla1.6 (Linux environment), you can't use FCKeditor at all.
Here's a screenshot of the use of IE5.0 and IE6.0.
FCKeditor screenshot
When you use IE5.0, you don't see the "upload" hint
Satand back in: 2004-10-31 17:28:06
Rough JS file, scalability is fine but the function is limited
Give up, as a souvenir collection
Reference Four
How to use the online editor fckeditor in PHP
Online editor FCKeditor usage in PHP (reprint)
Original Author: Tjyihui Origin: Phpx.com
FCKeditor is an open source project above SourceForge.net, mainly to realize the function of online web editor, the official website ishttp://www.fckeditor.net, support the ASP.net, ASP, clodfusion, PHP, Java and other languages on the server side, and support the mainstream browsers such as IE 5+, Mozilla, Netscape and so on. Currently the latest version of 2.0 Beta 2, but currently 2.0 beta version does not support PHP, so I chose to use the 1.6 version. Here is a screenshot of FCKeditor:
First, we'll go first.http://sourceforge.net/projects/fckeditor/Download the Fckeditor_1.6.zip and unzip it to your site subdirectory and change the folder name to FCKeditor. Into the fckeditor/directory, open the _test/directory, which contains a variety of programming languages to invoke the FCKeditor method, where PHP-related files have 2 files:
test.php//Submit data page
testsubmit.php//Display data page
You can take a look at the Fckeditord call method, and here isI have abbreviated aTest program:
<?php
if ($_post["ADD"]) {
$Content =$_post[' Editordefault '];
Echo $Content;
Variable $content is what we edit in the Fckeditord, which can be saved to the database
}
?>
<html>
<head>
<?php
Introducing the online editor
Include (".. /fckeditor/fckeditor.php ");
?>
</head>
<body>
<br>
<form action= "<?php echo $_server[' php_self ']; ?> "method=" post "language= JavaScript" >
<?php
$oFCKeditor = new FCKeditor;
FCKeditor Directory
$oFCKeditor->basepath = '.. /fckeditor/';
Instantiate the FCKeditor
$oFCKeditor->createfckeditor (' Editordefault ', ' 100% ', 300);
?>
<input type= "Submit" Name= "ADD" value= "submitted" >
</form>
</body>
</html>
From the above example we can see that to use FCKeditor, we first want to perform
Include (".. /fckeditor/fckeditor.php "); statement to refer to FCKeditor. And then execute
$oFCKeditor = new FCKeditor;
$oFCKeditor->basepath = '.. /fckeditor/';
$oFCKeditor->createfckeditor (' Editordefault ', ' 100% ', 300);
To instantiate the FCKeditor, and then add a line if you are editing the page:
$Content can be data read from a database
$oFCKeditor->value = $Content;
By default, upload picture function only corresponds to ASP way, want to realize in PHP upload file, also have to fckeditor configuration file to modify. Open/Fckeditor/js/fck_config.js (this is the FCKeditor main configuration file), navigate to the bottom section of the file that is//commented out of the content, will
//##
# # Image Browsing
//##
Config. ImageBrowser = true;
Custom Page URL
Config. Imagebrowserurl = config. BasePath + "filemanager/browse/sample_html/browse.html";
Config. Imagebrowserurl = config. BasePath + "filemanager/browse/sample_php/browse.php";
Config. Imagebrowserurl = config. BasePath + "filemanager/browse/sample_jsp/browse.jsp?type=img";
Config. Imagebrowserurl = config. BasePath + "filemanager/browse/sample_asp/browse.asp";
//##
# # Image Upload
//##
Config. Imageupload = true;
Page that effectivelly upload the image.
Config. Imageuploadurl = config. BasePath + "filemanager/upload/asp/upload.asp";
Config. Imageuploadurl = config. BasePath + "filemanager/upload/aspx/upload.aspx";
Config. Imageuploadurl = config. BasePath + "filemanager/upload/cfm/upload.cfm";
Config. Imageuploadurl = config. BasePath + "filemanager/upload/php/upload.php";
Config. Imageuploadurl = config. BasePath + "filemanager/upload/jsp/upload.jsp";
To
//##
# # Image Browsing
//##
Config. ImageBrowser = true;
Custom Page URL config.
Imagebrowserurl = "filemanager/browse/sample_html/browse.html";
Config. Imagebrowserurl = config. BasePath + "filemanager/browse/sample_php/browse.php";
//##
# # Image Upload
//##
Config. Imageupload = true;
Page that effectivelly upload the image.
Config. Imageuploadurl = config. BasePath + "filemanager/upload/php/upload.php";
Finally, 2 more files are modified:
/fckeditor/filemanager/upload/php/upload.php
Line 22nd
$UPLOAD _base_url = '/userimages/';
/fckeditor/filemanager/browse/sample_php/browse.php
Line 20th
$IMAGES _base_url = '/fckeditor/userimages/';
These two definitions of which directory to upload to the picture, you can define, but make sure that the directory exists, or upload pictures will be an error.
Then we put the FCKeditor in the directory. asp,. JSP,. CFM Files and _test, _ ASPNET, _developers, _docs, _jsp directories are eliminated to save space. Well, the basic use of fckeditor is here, we are interested in the site to see the effect:http://www.shaof.com。
Reference Five
FCKeditor is currently the best online editor on the Internet, powerful, supporting IE 5.5+ (Windows), Firefox 1.0+, Mozilla 1.3+ and Netscape 7.1+. Browsers, no platform restrictions, Able to operate on Windows, MAC and Linux, and can be integrated with a variety of web languages, such as ASP.net, ASP, ColdFusion, PHP, Java, Active-foxpro, Lasso, Perl, Python, Multilingual support, which provides more than 50 language packs, is an open-source software. The latest version is 2.4.3, download address:Http://www.fckeditor.net/download
FCKeditor is a platform-and multi-language-enabled editor that can be downloaded directly to a program or Web page. Sometimes because the system does not need so many functions, it is necessary to make some simple changes to configure a more suitable for their own web site personality editor.
First, optimize FCKeditor folders and files:
Download FCKeditor and decompression, will produce _samples and editor two folders and several files, all delete to _ folder and file, because these are fckeditor some examples, you can learn, but upload to the Web server on the big can not need to, Delete. In the root directory, there are a few fckeditor.asp,fckeditor.php,fckeditor.js ... And so on other documents, this depends on your website server and the website need what program language, have Php,asp,perl,. NET, I chose the script configuration file Fckeditor.js, there are three files fckconfig.js, Fckstyles.xml, fcktemplates.xml are required files, all the others can be deleted.
Open the Editor folder, enter the Lang folder, which is the FCKeditor language pack, the general domestic selection en.js and Zh.js and zh-cn.js files can be, plus the necessary file Fcklanguagemanager.js ( This file is required under version 2.4 and other files can be completely deleted.
After you open the Editor/filemanager folder, you can choose to delete the Brower folder under the FileManager folder if you do not want to display the contents of the server when uploading pictures or files. Then enter the upload folder, which is a variety of program language upload files, select the program you need the language folder, other delete.
Enter the Editor/plugins folder, and if you do not need these additional fckeditor plugins, delete all the folders inside.
Into the Editor/skins folder, which is the editor of the skin files, default file is the defaults of the gray Panel editor, Office2003 and silver are loaded separately, see which good-looking to choose which, and then other delete.
In addition, the Editor/dialog folder is some Editor dialog box, if you choose some basic features, you can choose their files, the other delete is also possible.
Here, the Editor's folder optimization basic OK, streamlined a lot, more convenient for the server upload and use.
Second, the basic configuration modification of FCKeditor:
Fckconfig.js is the FCKeditor editor of the configuration file, does not involve the addition of tool buttons to modify this configuration is completely OK.
The following is a list of configuration options in Fckconfig.js:
Autodetectlanguage=true/false Automatic Detection language
basehref= "" _fcksavedurl= "" "" "relative to the base address of the link
contentlangdirection= "Ltr/rtl" Default text direction
contextmenu= string array, right-click the contents of the menu
Customconfigurationspath= "" Custom profile path and name
Debug=true/false whether debugging is turned on, so that when Fckdebug.output () is invoked, the contents are output in the debug window
Defaultlanguage= "" Default language
editorareacss= the style sheet file in the edit area
When Enablesourcexhtml=true/false is true, HTML is processed as XHTML when switched from a visual interface to a code page
Enablexhtml=true/false whether to allow XHTML to be used instead of HTML
Fillemptyblocks=true/false uses this feature to replace empty block-level elements with empty cells
fontcolors= Set the text color list when the color picker is displayed
Fontformats= the name of the display in a list of text formats
fontnames= the font name in the Font list
fontsizes= a list of font sizes in the font size
Forcepasteasplaintext=true/false forced Paste as plain text
Forcesimpleampersand=true/false whether to convert & symbols to XML entities
Formatindentator= "" When you indent code in source format using characters
Formatoutput=true/false whether the code is automatically formatted when the content is output
Formatsource=true/false automatically format code when switching to Code view
Fullpage=true/false whether to allow editing of the entire HTML file, or only to edit the content between the body
Geckousespan=true/false whether span markers are allowed instead of b,i,u tags
Iespelldownloadurl= "" Download the address of the spelling checker
Imagebrowser=true/false whether to allow browsing of server features
Imagebrowserurl= the URL to run when browsing the server
imagebrowserwindowheight= "" Image browser window height
Imagebrowserwindowwidth= "" Image browser window width
Linkbrowser=true/false whether the server is allowed to browse when the link is inserted
Linkbrowserurl= the URL of the server when inserting a link
linkbrowserwindowheight= "" Link target browser window height
Linkbrowserwindowwidth= "" Link target browser window width
Plugins=object Registration Plugin
Pluginspath= "" Plug-in folder
Showborders=true/false merge borders
Skinpath= "" Skin folder location
smileycolumns=12 Number of Chart window columns
Array of picture filenames in smileyimages= character array
Smileypath= "" "" "" "" "" "
Smileywindowheight Picture Window Height
Smileywindowwidth Picture Window width
Spellchecker= "Iespell/spellerpages" to set the spelling checker
Focus to editor when Startupfocus=true/false Open
Stylesxmlpath= "" Setting the location of the XML file that defines the list of CSS styles
Number of space characters produced by the Tabspaces=4 tab key
Toolbarcancollapse=true/false whether to allow expansion/collapse of toolbars
Toolbarsets=object allow use of toolbar collection
Toolbarstartexpanded=true/false Open is toolbar whether to unfold
Usebroncarriagereturn=true/false whether to generate a BR mark or a P or div tag when carriage return
The following is a detailed description of some common configuration options:
fckconfig.defaultlanguage = ' en '; Select the language of the editor, and the editor/lang/folder has the corresponding language script file below.
Fckconfig.toolbarstartexpanded = true;//expand or shrink the tool button when loading the editor.
fckconfig.toolbarsets["Default" and fckconfig.toolbarsets["basic" are all tool buttons or some basic buttons displayed when loading. Can be set in files such as Fckeditor.js or fckeditor.asp/php.
Fckconfig.contextmenu This is the editor's right key configuration file, you can add or subtract the corresponding button.
Fckconfig.linkbrowser = false;//browse for files on the server, if False is not allowed, the next few lines can be commented out accordingly. Fckconfig.imagebrowser = False at the back; Fckconfig.flashbrowser = false; If you choose to allow, remove the comments from the appropriate Program language section.
Fckconfig.linkupload = true; Fckconfig.imageupload = true; Fckconfig.flashupload = true; These three configuration options are set to upload files, and if users are not allowed to upload files, change true to false. If allowed, please select in the appropriate program language, that is, to remove the corresponding comment line.
After the modification, open the appropriate program language FCKeditor file to continue.
Third, modify the configuration of editor load:
Open files such as Fckeditor.js or FCKEDITOR.ASP/PHP/PL, and the configuration of these files is similar. Here, take the fckeditor.js description.
Width: Editor width.
Height: editor height.
ToolbarSet: Editor Tool button: Default or Basic.
BasePath: The directory where the editor resides, it is recommended to use the root form.
The other can set the default on it.
Iv. Use the FCKeditor editor:
1. ASP Program Language Load Editor:
Include the file fckeditor.asp file, and then add the following code to the appropriate place:
<%
Dim Ofckeditor
Set ofckeditor = New FCKeditor
Ofckeditor.basepath = "/"
Ofckeditor.toolbarset = "Default"
Ofckeditor.width = "100%"
Ofckeditor.height = "400"
Ofckeditor.value = RS ("Content")
Ofckeditor.create "Content"
%>
2, JS program language load Editor:
Refer to the script fckeditor.js file and add the following code to the appropriate place:
<script type= "Text/javascript" >
var ofckeditor = new FCKeditor (' Content ');
Ofckeditor.basepath = '/';
Ofckeditor.toolbarset = ' Basic ';
Ofckeditor.width = ' 100% ';
Ofckeditor.height = ' 400 ';
Ofckeditor.value = ';
Ofckeditor.create ();
</script>
JS language version also has a replacement text box to speed up the display of the file, where I chose to click the edit box to appear editor, reference fckeditor.js file, add the following code:
<script type= "Text/javascript" >
<!--
function Showeditor () {
var ofckeditor = new FCKeditor (' Content ');
Ofckeditor.basepath = ".. /fckeditor/";
Ofckeditor.value = ';
Ofckeditor.replacetextarea ();
}
-->
</script><div id= "precontent" ><textarea id= "Content" onclick= "Javascript:showeditor ();" ></textarea></div>
3, PHP program language load Editor:
Include the fckeditor.php file and add the following code to the appropriate place:
<?php
$oFCKeditor = new FCKeditor (' Content ');
$oFCKeditor->basepath = ". /fckeditor/";
$oFCKeditor->value = ';
$oFCKeditor->create ();
?>