SoFunction
Updated on 2025-04-13

How to use FCKeditor web page online editor

</appSettings>
4. Use in web pages
<FCKeditorV2:FCKeditor ID="FCKeditor" runat="server" BasePath="~/FCKeditor/">//BasePath specifies to the root directory of FCKeditor
 </FCKeditorV2:FCKeditor>

FCKeditor configuration:

Enter the FCKeditor folder and edit the file

1. Modify (change it to the language you are currently using)

var _FileBrowserLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py

var _QuickUploadLanguage = 'aspx' ; // asp | aspx | cfm | lasso | perl | php | py

2、ReviseConfiguration Language

= ‘en'  for: = ‘zh-CN' ;

3. Configure skins, including default, office2003, silver styles, etc.

= + 'skins/default/' ;

4. You can use the Tab key in the editor domain. (1 is yes, 0 is no)

= 0 ; Change to = 1 ;

5. Add several commonly used fonts:

= ‘Song font; bold font; official script; regular font_GB2312;Arial;Comic Sans MS;Courier New;Tahoma;Times New Roman;Verdana';

6. The default display font in the editor domain is 12px. If you want to modify it, you can achieve the requirements by modifying the style sheet. Open /editor/css/fck_editorarea.css and modify the font-size property.

7. About safety

If your editor is used in the foreground without authentication, it is recommended to use Basic toolbar

["Basic"] = [
  ['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','Image','-','About']

] ;

8. Click on the browse server in the upload file window, and it may appear the server didn't send back a proper xml….. The error message is because FCKeditor requires different types of files to be passed to different directories, including file, image, falsh, media and other directories. You can try to create them first.


2.6 security configuration

File upload, error occurred: (This connector is check the "editor/filemanager/connectors/aspx/" file.)

Open the editor/filemanager/connectors/aspx/ file and return true.

Copy the codeThe code is as follows:

private bool CheckAuthentication()
{
// WARNING : DO NOT simply return "true". By doing so, you are allowing
// "anyone" to upload and list the files in your server. You must implement
// some kind of session validation here. Even something very simple as...
//
//return ( Session[ "IsAuthorized" ] != null && (bool)Session[ "IsAuthorized" ] == true );
//
// ... where Session[ "IsAuthorized" ] is set to "true" as soon as the
// user logs in your system.

return true;
}

FCKeditor streamlining and cleaning
Enter the FCKeditor folder, delete all files and folders starting with "_", delete the suffix names under the FCKeditor folder as: .afp, .cfc, .cfm, .lasso, .pl, .py, .txt files, and only keep the FCKeditor folder, , , ;
Enter the editor folder, delete the "_source" folder, and the source file is also placed in it;
The language pack in lang is placed. If you only use simplified Chinese, then only keep it and two files will be OK. It is recommended to keep two files (English) and (Traditional Chinese) and are language configuration files. Only with it can it be paired with the settings in it and corresponding to the corresponding language files. You must keep it!
A brief introduction to the Chinese comments in the configuration file. If you have any errors in understanding, please leave a message to correct me.
= '' ; //Custom configuration file path and name
= + 'css/fck_editorarea.css' ; //Stylesheet file path for text editing area

= '' ; //Style sheet style of text editing area
= '' ; //Toolbar preview CSS
= '' ; //Document type
= '' ; //The base address of the relative link
= false ; //Is it allowed to edit the entire HTML file, or is it allowed to edit only content between BODYs
= false ; // Whether to enable "display module"
= false ; //Whether to enable the debug window function
= true ; // Whether to enable web query debugging function
= + 'skins/default/' ; //FCKeditor skin path
= '' ; // Editor's skin CSS path
= '' ; //Skin CSS path of dialogue window
= [ + 'images/', + 'images/' ] ;
//Preloaded pictures

= + 'plugins/' ; //Plugin path
= 400 ;
//The maximum height limit for text editing area allows automatic growth. When setting this property, it should also be set.
// ( 'autogrow' ) ;Attribute comment removal, use in conjunction
= true ; // Whether to automatically detect language
= 'en' ; //Default language
= 'ltr' ; //The default text direction can be selected "ltr/rtl", that is, from left to right or from right to left
= true ; //handle HTML entities
= true ; //Including Latin
= true ; //Including Greek
= false ; //handle digital entities
= '' ; //Add digital entity
= true ; //Whether to fill empty blocks
= true ; //Whether to format the code automatically when switching to the code view
= true ; //Whether the code is automatically formatted when outputting content
= ' ' ; // When indenting the characters used in the source code format
= 'none' ; //Detection of email links
= 'mt(NAME,DOMAIN,SUBJECT,BODY)' ; //Detection of email link
= false ; //Whether the focus reaches the editor when it is turned on, that is, whether the cursor stays on the fckeditor when opening the page
= false ; //Whether to force paste as plain text content
= true; // Whether to automatically detect the paste file from word, only IE is supported
= true ; // Whether to display the drop-down menu
= false ; //Whether not convert the & symbol to XML entity
= 0 ; //When pressing the Tab key, the number of squares of the cursor jumps, the default value is zero and no squares are jumps
= true ; //Whether to merge borders
= false ; // Whether it pops up
= true; //Whether to launch the FCKeditor toolbar expand by default
= true ; //Whether to collapse or expand the toolbar
= true ; //Is the empty paragraph value ignored?
= 10000; //Floating panel index
= false ; // Whether to encode HTML output
= true ; // Whether to replace all templates
= true ; // Whether to display the actual content in the template window
= 'In' ; //Toolbar location
["Default"] //Configure the buttons in the default toolbar, suitable for background editing
["Basic"] //Configure basic toolbar button, suitable for front desk editing
= 'p' ; // Press Enter when editing text to automatically generate <P></P> tags
= 'br' ; //// Press Shift+En button to automatically generate <br />Tags
//Custom keyboard shortcuts
//Define the content of the right-click menu
= false ; //Is it allowed to right-click to display the browser's context menu when Ctrl is pressed in the editing area
= false ; //Whether to right-click in the editing area to display the browser's context menu
= true ; //Is more color options prohibited
//Text color list
//Text format list
//Font list
//Font list
= + '' ; //The location of the XML file in the CSS style list
= + '' ; //The XML file location of the template
= 'WSC' ; //Spellow Checker
= '/' ; //Download the spell checker URL
= 'server-scripts/' ; //Spellow Checker script path
= false ; //Firefox browser spelling check
= 15 ; //The maximum number of times that can be revoked
= false ; //Is it prohibited users from resizing images and tables
= true ; //Does the table tool be disabled
= false ; // Whether to hide the target tag of the Link window
= false ; // Whether to hide the advanced tag of the Link window
= false ; // Whether to hide the link tag of the image window
= false ; // Whether to hide the advanced tag of the image window
= false ; // Whether to hide the advanced tag of the Flash window
= '' ; //Add HTML to apply format
= '' ; //Set the editor's id
= '' ; //Set the editor's class
= '' ; //Set the style of the text editor, default to blank documents
= '' ; //Set the default format
= '' ; //Set the default font
= '' ; //Set the default font size
= '' ; //Set the default link target to (_blank, _self _parent, _top)
= false ; // Whether to set the direct paste to Word format
//Whether to delete the corresponding format when deleting text
//Whether to delete the corresponding style when deleting text
//Style menu
//Set FCKeditor core style
= 40 ; //Length of indentation in the editor
= 'px' ; //Units of indentation in the editor
= [] ; //FCKeditor allows CSS indentation
= [] ; //FCKeditor allows CSS class text
var _FileBrowserLanguage = 'php' ; //The language used by the file browser
var _QuickUploadLanguage = 'php' ; //The language used to upload quickly
var _FileBrowserExtension = _FileBrowserLanguage == 'perl' ? 'cgi' : _FileBrowserLanguage ; //File Browser Extension
var _QuickUploadExtension = _QuickUploadLanguage == 'perl' ? 'cgi' : _QuickUploadLanguage ; //Quick upload extension
= true ; //Is it allowed to browse the server when inserting a link
//Browse the URL of the server when inserting the link
//The window width of the link target browser
//The height of the link target browser window
= true ; // Whether to turn off the function of the image file browsing server
//The URL of the image file browsing server
//Image Browser Window Width
//Image Browser Window Height
= true ; // Whether to turn off the function of the Flash browsing server
//Flash browsing server URL
//Flash browser window width
//Flash browser window height
= true ; //Whether to enable file upload function
//Specify the default upload address of the file
//Set the extension that allows uploading of files
= "" ; //Set the extension that allows uploading script files
= true ; // Whether to enable the image upload function
//Specify the default upload image file address
//Set the extension that allows uploading of picture files
= "" ; //Set the extension that allows uploading of picture script files
= true ; //Whether to enable Flash upload function
//Flash upload file address
//Set the extension that allows uploading of Flash files
= "" ; //Set the extension that allows uploading of Flash script files
//Insert the path to emoticon icon
//File name of emoticon icon
= 8 ; //The expression window displays the number of expression columns
= 320 ; //The width of the emoticon window will be displayed, and this window will be adjusted due to changes in the emoticon file
= 210 ; //The expression window displays the height, this window will be adjusted due to changes in the expression file
= '#ffffff' ; //The color hidden by the background when the editor pops up
= 0.50; //The transparency of the background shading when the editor pops up
= false ;
= false ;