detailed settings:
Go to the FCKeditor folder and edit the fckconfig. js file. In fact, the list is clear, the compilation is more standardized, there are some notes, but as long as you understand English, you can understand it, the operation is also very convenient. The following describes several common settings as a small example.
1. This step is required and the most important step.
Originally:
VaR _ filebrowserlanguage = 'php'; // ASP | aspx | CFM
= 320 ;//Display width of the emoticons window. This window will be adjusted due to changes in the emoticons file.Fckconfig. smileyappswheight = 240 ;//The height of the emoticons window. This window will be adjusted due to changes in the emoticons file.Fckconfig. fullpage = true/false ;//Whether to allow editing of the entire HTML file or only the content between the bodies
Upload settings
VaR _ filebrowserlanguage = 'php ';//ASP | aspx | CFM | las
directory. If your website has more layers, make appropriate adjustments.UserfilespathIs the directory of all uploaded files.Why set to/files?This is not ~ /FilesBecauseFCKeditorUse this value to return the relative path of the uploaded file to the client. Otherwise, the user will retrieve the user's machine directory instead of the HTTP directory during access.
8. The files directory must have the write permission. You can set the account based on your website requirements. This document
entire FCKeditor folder.
Userfilespath: the path for storing uploaded files and images.
After completing the configuration, we can use the FCKeditor Control. To better debug this tool to meet our actual needs, we must modify its attribute settings.
FCKeditor detailed settings:
Go to the FCKeditor folder and edit the fckconfig. js file. In fact, the list is clear, the compilation is more standardized, there are some notes, but as long as you understand English, you can understand it, the
dangerous to put the files in FCKeditor.
8. The files directory must have the write permission. You can set the account based on your website requirements. This document makes it more reasonable to use an ASP. NET account to set the user conveniently.
9. Modify the FCKeditor/fckconfig. js file.At the position of Row 3VaR _ filebrowserlanguage = 'asp '; // ASP | aspx | CFM | lasso | Perl | PHP | pyVaR _ quickuploadlanguage = 'asp '; // ASP | aspx |
cfparam is set, the following code line appears:
This line of code is equivalent:
Determine whether the URL. id variable exists. If it does not exist, a value of 1 is given. This function is often used with the cfform tag in the development, registration, and verification modules, which will be seen in the subsequent tutorials.
Click the icon to add the coldfusion-specific annotator to your cfm page:
Set a variable named var_hello.
--->
The abo
, and click OK. In this case, a bin folder is added to the fckpro project directory, which contains the fredck. fckeditorv2.dll file. Of course, you can also manually copy fredck. fckeditorv2.dll directly to fckpro "bin". Vs will automatically compile it during compilation.
2. to facilitate rad development, we also add the FCKeditor Control to the toolbox of Vs, expand the common label Group of the Toolbox (general), right-click the component (choose items ...), Find the Browse button in the di
this window adjusts for changes in the expression file.Fckconfig.smileywindowheight = 240; The expression window shows the height, and this window adjusts for changes in the expression file.Fckconfig.fullpage = True/false; Whether to allow editing of the entire HTML file, or only to edit the content between the body
Upload Settings
var _filebrowserlanguage = ' php '; ASP | aspx | CFM | Lasso | Perl | php | Pyvar _quickuploadlanguage = ' php '; ASP
dialog box, locate the FredCK.FCKeditorV2.dll, and then confirm it.3. Configure Web.config, add at
Copy Code code as follows:
FCKeditor configuration:
Go to the FCKeditor folder and edit the Fckconfig.js file
1, modify:
Copy Code code as follows:
var _filebrowserlanguage = ' php '; ASP | aspx | CFM | Lasso | Perl | php | Py
var _quickuploadlanguage = ' php '; ASP | aspx | C
the detailed use of the method, and later other tags can also be in the Properties window by clicking on the tag info to understand. Then, after you set up Cfparam, the following lines of code appear:
This line of code is equivalent to:
To determine whether the variable exists, if it does not, give a value of 1 url.id. This feature is often used in the development of the registration and verification module with Cfform this tag to use, the following tutorial will be seen.
Click on th
; DittoFckconfig.flashupload = true; Ditto
That is, to set these items to true, And we use today's 2.4.2 Fckconfig.js in the default is already turned on the upload switch display function, so, if you want to use the editor as a foreground (FCKeditor upload vulnerability problem has not been better), considering the security you may need to turn off the file upload function, then you only need to Set to False (of course two PHP files you do not turn on the upload function OH).If you want to use
Definition and application definition
stuff = {'name': 'Zed', 'age': 36, 'height': 6*12+2}#key:value pairs
Instance
# create a mapping of state to abbreviationstates = { 'Oregon': 'OR', 'Florida': 'FL', 'California': 'CA', 'New York': 'NY', 'Michigan': 'MI'}# create a basic set of states and some cities in themcities = { 'CA': 'San Francisco', 'MI': 'Detroit', 'FL': 'Jacksonville'}# add some more citiescities['NY'] = 'New York'cities['OR'] = '
FileWorkerBase.cs
Copy Code code as follows:
Protected string Userfilesdirectory
{
Get
{
if (suserfilesdirectory = null)
{
Get the local (server) directory path translation. This. Userfilespath
Suserfilesdirectory = Server.MapPath (string. Format ("{0}{1}", "~", "/userfiles/"));
}
return suserfilesdirectory;
}
}
Now BUiD Project and change the Refrence to FredCK.FCKeditorV2.dll (Refrence Again)
Copy Code code as follows:
After the bu
Fckconfig.autodetectlanguage whether the browser default language is automatically detected Fckconfig.defaultlanguage Default Editor language Fckconfig.startupfocus whether to automatically focus in the editor Fckconfig.tabspaces Support for tab Space 1 support 0 do not support Fckconfig.toolbarsets[key] Define toolbars Fckconfig.contextmenu the right mouse context menu Fckconfig.fontcolors list items for text colors in the Editor toolbar Fckconfig.fontnames the font in the Editor toolb
on the suffix name of. cfm OR. Cfml.
4.Web server reads the correct HTML file from the current hard disk or memory and sends it back to the user's browser.
The 5.cfmL file will be interpreted by the user's browser and the results will be displayed in the user's browser.
Of course, this process can be a bit more complicated (for example, the contents of a form and the passing of a query string). In most cases, this process is step-by-step for a variet
Internet. 2) CFML fully complies with the basic requirements required by traditional programming (such as process control and condition Judgment), and uses
What are. cfm and. CFC?
CFML code is often saved as a file with the. cfm or. CFC extension .. CFM is the standard extension of coldfusion. It can be a common text file, a file called by other files or a cust
names. For details, refer to the default settings.75. fckconfig. smileycolumns = 8; // Number of emoticon columns displayed in the emoticon window76. fckconfig. smiley1_wwidth = 320; // display width of the emoticon window. This window will be adjusted due to changes in the emoticon file.77. fckconfig. smiley1_wheight = 240; // The height of the emoticon window. This window will be adjusted due to changes in the emoticon file.78. fckconfig. fullpage = true/false; // whether to allow editing of
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.