FCKeditor2.3.2 online editor is very easy to use and fully supports file upload. Baidu finally got it done this afternoon. Download FCKeditor2.3.2 and extract it to FCKeditor.
1 First delete unnecessary files to save space. Get rid of all files starting with _ such as _samples, _testcases and some unused .asp, .jsp, and .cfm files.
2 Modify fckconfig.js
FCKConfig.AutoDetectLanguage = true;//Whether to automatically detect the language
FCKConfig.DefaultLanguage = 'zh-cn';//Set the language
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;//Set the skin
FCKConfig.TabSpaces = 1;//Is the tab valid?
FCKConfig.ToolbarStartExpanded = true ;//Whether the editing toolbar appears, it will not appear until you click "Expand Toolbar"
FCKConfig.FontNames = '宋体;黑体;official script;楷体_GB2312;Arial;Comic Sans MS;Courier New ;Tahoma;Times New Roman;Verdana' ;//Add Chinese font
Modify FCKeditoreditorCSSfck_editorarea.css
Set default font and size
body, td
{
font-family: Arial, Verdana, Sans-Serif;
font-size: 14px;
}
3 About file upload Settings
Modify fckconfig.js
var _FileBrowserLanguage = 'php' ; // asp | aspx | cfm | lasso | perl | php
var _QuickUploadLanguage = 'php' ; // asp | aspx | cfm | lasso | php
Modify fckeditoreditorfilemanagerbrowserdefaultconnectorsphp
$Config['Enabled'] = true ;
$Config['UserFilesPath'] = ' /UserFiles/' ;//Set the upload folder, you can specify it yourself
Modify fckeditoreditorfilemanageruploadphp
$Config['Enabled'] = true ;
$Config[' UseFileType'] = true ;
$Config['UserFilesPath'] = '/UserFiles/' ;//Same as above
4 When introducing an online editor, just
include("fckeditor/fckeditor.php") ;
$oFCKeditor = new FCKeditor('FCKeditor1') ;//Instantiation
$ oFCKeditor->BasePath = 'fckeditor/';//This path must be consistent with the above import path, otherwise an error will be reported: fckeditor.html page cannot be found
//$oFCKeditor->Value = '' ;
$oFCKeditor->Width = '100%' ;
$oFCKeditor->Height = '300' ;
$oFCKeditor->Create () ;
?>
JS uses alert( FCKeditorAPI.GetInstance('FCKeditor1').GetXHTML( true )) to get the value of FCKeditor1;
PHP uses $ _POST['FCKeditor1'] gets the value of FCKeditor1.