FCKeditor2.3.2 Online Editor is very useful and fully supports file upload. Today, Baidu was finally settled in an afternoon. Download FCKeditor2.3.2, unzip to FCKeditor.
1 Save space by first deleting unnecessary files. All files that begin with _ such as _samples,_testcases and some unused. asp,. jsp,. cfm files are all killed.
2 modifying 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;//The Edit toolbar appears, and then appears when you click "Expand Toolbar".
Fckconfig.fontnames = ' song body; blackbody; script; italics _gb2312; Arial; Comic Sans MS; Courier New; Tahoma; Times New Roman; Verdana ';//Add Chinese fonts
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 uploaded folder, you can specify
Modify fckeditoreditorfilemanageruploadphp
$Config [' Enabled '] = true;
$Config [' usefiletype '] = true;
$Config [' userfilespath '] = '/userfiles/';//Same as above
4 when introducing an online editor, simply
Include ("fckeditor/fckeditor.php");
$oFCKeditor = new FCKeditor (' FCKeditor1 ');//instantiation
$oFCKeditor->basepath = ' fckeditor/';//This path must be consistent with the above-mentioned path, otherwise it will be an error: fckeditor.html page not found
$oFCKeditor->value = ";
$oFCKeditor->width = ' 100% ';
$oFCKeditor->height = ' 300 ';
$oFCKeditor->create ();
?>
JS with alert (fckeditorapi.getinstance (' FCKeditor1 '). Getxhtml (True)) Gets the value of FCKeditor1;
PHP uses $_post[' FCKeditor1 '] to get the value of FCKeditor1.
http://www.bkjia.com/PHPjc/446972.html www.bkjia.com true http://www.bkjia.com/PHPjc/446972.html techarticle FCKeditor2.3.2 Online Editor is very useful and fully supports file upload. Today, Baidu was finally settled in an afternoon. Download FCKeditor2.3.2, unzip to FCKeditor. 1 First remove unnecessary ...