Php uses fckeditor 1: modify the file upload language to PHP
Open fckconfig. js
Find:
Var _ FileBrowserLanguage = 'asp'
Var _ QuickUploadLanguage = 'asp'
Changed:
Var _ FileBrowserLanguage = 'php'
Var _ QuickUploadLanguage = 'php'
II. enable PHP file Upload
1: enable FileBrowser:
Open fckeditor/editor/filemanager/browser/default/connectors/php/config. php
Enable file upload:
Find:
$ Config ['enabled'] = false
Changed:
$ Config ['enabled'] = true
Set the upload Directory:
Find:
$ Config ['userfilespath'] = '/userfiles /'
Changed:
$ Config ['userfilespath'] = 'your project path'
2: enable QuickUpload
Open fckeditor/editor/filemanager/upload/php/config. php
Enable file upload:
Find:
$ Config ['enabled'] = false
Changed:
$ Config ['enabled'] = true
Set the upload Directory:
Find:
$ Config ['userfilespath'] = '/userfiles /'
Changed:
$ Config ['userfilespath'] = 'your project path'
Use instance
$ Fck = $ _ POST ["FCKeditor1"];
If ($ fck! = "")
{
Echo htmlspecialchars ($ fck); // htmlspecialchars () is used to convert special characters in text information into html string formats. The most common scenario is to process the message board of customer messages.
}
?>
Fck test
JS uses alert (FCKeditorAPI. GetInstance ('fckeditor1'). GetXHTML (true) to get the value of FCKeditor1;
PHP uses $ _ POST ['fckeditor1'] to get the value of fckeditor1.