that can support. Js is the core of this component, and we cannot do anything about it. Some plug-ins are plug-ins, so we don't have to worry about it. In this example, we will use the upload image plug-in, instead of using its default upload function. Skin contains three skins: Default, Office2003, and Silver. By now, the folder size is reduced a lot. Finally, Copy the fckeditor folder to the root directory of your website. After everything is done, configure Web. config and fckconfig. js to u
FCKeditor Official Website
Http://www.fckeditor.net/
1: COPY the fckeditor folder to the WEB project, add DLL references to the project, and create an UploadFiles file (the directory for uploading images)
2: web. config Configuration
3: settings that must be changed
Edit the fckconfig. js file under the root directory of fckeditor (the red font indicates that the file is changed)
Var _ FileBrowserLanguage = 'aspx '; // asp | aspx | cfm | lasso
editor \ Lang directory, all except en. JS, Zh. JS, and zh-cn.js are deleted.
4. Delete the _ samples directory. If you want to see the example, do not delete the directory.
Iii. Detailed settings of fckeditor2.6
1. Modify in fckconfig. js
Fckconfig. toolbarsets ["default"] = [['Bold ', 'italic', 'underline', 'strikethangout', '-', 'subscript', 'superscript'],['Orderedlist', 'unorderedlist', '-', 'outdent ', 'indent', 'blockquote'],['Justifyleft', 'justifycenter', 'justifyright', 'justif
= 'php'; // ASP | aspx | CFM | lasso | Perl | PHP | pyVaR _ quickuploadlanguage = 'php'; // ASP | aspx | CFM | lasso | Perl | PHP | py
④ Automatic renaming of uploaded file namesFCKeditorChinese file names are not supported, so we need to change the name when saving the file to the server. Because there are two parts to be uploaded, and the files used are different, the two files should be modified at th
specify skinpath = "/FCKeditor/Editor/skins/office2003" on the UI page. net version can be better, you can find FCKeditor ASP. net 2.1 source file, then modify the control design, expose more useful properties for it, and re-compile it.5. Use the Value Attribute of the FCKeditor Control to obtain the PostBack data.6. By default, ASP. NET does not allow the submission of HTML and JavaScript content. Therefore, you must set validaterequest to false for pages using FCKeditor. ( % @ Page Validter
PostBack data.6. due to the default status, Asp. net does not allow the submission of HTML and JavaScript content. Therefore, you must set validaterequest to false for pages using FCKeditor. (
--------------------------------------------------------
Appendix:
I. How to set the language for uploading files
In the fckconfig. js file under the root directory of FCKeditor
VaR _ filebrowserlanguage = 'asp '; // ASP | aspx | CFM | lasso | Perl | PHP | pyVa
during the development stage, the URL of vs2005 when running the project is http: // localhost/ItemObject Name/form, after the release of the site on the server, with the path is the http://www.abc.com/OfForm, so you must change it after release. These are common errors that occur when fckeditor2.2 + ASP. net2.0 is used, and the cloud is unknown.
Don't be happy first. This upload function is still the most crucial step. In the root directory of FCKeditor (fckpro/FCKeditor/), findOpen the fckcon
others.Now it looks pleasing to the eye! 3. Configure the editor,You cannot correctly run the editor control by dragging it to the webpage. You must configure it. The first configuration file is fckconfig. JS, which is located in the root directory of FCKeditor.. Modifications include:Fckconfig. skinpath = fckconfig. basepath + 'Skins/silver/'; (skin)Fckconfig. autodetectlanguage = true; (automatic language detection)Fckconfig. defaultlanguage = 'zh-cn'; (Simplified Chinese by default)Select As
can access it as follows:
--------------------------------------------------------
Appendix:
I. How to set the language for uploading files
In the fckconfig. js file under the root directory of FCKeditor
Var _ FileBrowserLanguage = 'asp '; // asp | aspx | cfm | lasso | perl | php | pyVar _ QuickUploadLanguage = 'asp '; // asp | aspx | cfm | lasso | php
The two lines are changed to the editor language you n
image server (img.jb51.net) and backend server (gl.cdbs.com.cn). (In fact, only fckeditor. asp is required on gl.cdbs.com.cn, because asp cannot include Internet files)2. Set sBasePath = http://img1.cdbs.com.cn/fckeditor/to create an editor. You can directly call the image server editor.
Copy codeThe Code is as follows: Dim sBasePath
SBasePath = "http://img.jb51.net/fckeditor"
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
OFCKeditor. BasePath = sBasePath
OFCKeditor. Config ("SkinPath") = sBaseP
Once upon a while, we found that the extensions of the active pages used by the websites around us are increasingly enriched, starting from the most popular Microsoft ASP (*. asp), to ColdFusion (*. cfm) and the JSP (*. jsp), small and medium websites "favorite" PHP (*. php *. php3 *. phtml) and so on. Once upon a while, we found that the extensions of the active pages used by the websites around us were increasingly enriched, starting from the most p
Once upon a time, the expanded names of the sports pages applied by the websites around us were gradually enriched, starting from the most popular Microsoft ASP (*. asp), to ColdFusion (*. cfm) and SUN, which has been widely promoted by large trading websites, once upon a time, the names of the sports pages applied by the websites around us have become more and more extensive, starting from the most popular Microsoft ASP (*. asp), to ColdFusion (*.
. With the powerful support of Microsoft, it can be said that it is one of the most popular Web development languages nowadays. To avoid using the symbol "?" in the URL, Most search engines Support dynamic web pages developed using ASP."?" Is used What should I do? To solve this problem, a company named "exception digital enterprise solutions" launched their solution, xqasp. This is an update software. It allows the symbol "?" in the URL Convert the network server to "/". For more information, s
Demo effect:
// ****** Qq2729000005 *******(1)1. Copy fredck. fckeditorv2.dllProgramUnder the bin directory2. Copy the FCKeditor source code to the program directory.3. Create a folder in the program directory to save the uploaded files.
(2)1. Streamline the FCKeditor FileA. Delete all files and folders starting _B. Delete the FCKeditor \ editor \ Lang language and retain oneC. Delete the FCKeditor \ editor \ skins skin and retain oneD. Set Editor \ filemanager \ connectorsProgramming
that, when writing A list file, between "Manifest-version:" and "1.0", between "Main-Class:" and the Main Class ", and "Created-By:" and "1.2.2" must have only one space.
(2) generate a JAR File
D: \ test \ jar cfm Tom. jar Mymoon. mf A. class B. class
The c-edge parameter must generate a new JAR file. f indicates the name of the JAR file to be generated. m indicates the name of the file list file.
Note: If the machine has installed the WinRAR decomp
\ Template\layouts\)
4. Add folders to the FCKeditor userfiles. Open the folder's writable permissions to users who need to upload pictures.
5. Change file fckconfig.js. (the corresponding row is found, and the value is changed to what I see below)
FCKConfig.DefaultLanguage = 'zh-cn' ;
var _FileBrowserLanguage= 'aspx' ;// asp | aspx | cfm | lasso | perl | php | py var _QuickUploadLanguage= 'aspx' ;// asp | aspx |
This option, when the CFM page is wrong, you will see the application error message displayed in application through the browser, including the physical path of the page template, the URI of the page, The number of error rows (not necessarily accurate), the database statement of the operation, the data source name, the trace method of the Java stack, and so on. Some of this information is obviously that you do not want to display after the project is
before_request adorner will be executed in advance of the view method each time the request is received. So here's where to set our G.user variable (app/views.py):
@app. Before_request
def before_request ():
g.user = Current_User
That's all it takes, the CURRENT_USER global variable is set by Flask-login, so we just have to copy it to a more accessible g-variable and OK. In this way, all requests can access the logged-in user, or even the internal template.
Index view
In the pr
': ' John '},
' body ': ' Beautiful Day in portland! '
},
{
' author ': {' nickname ': ' Susan '},
' Body ': ' The Avengers movie is so cool! '
}
]
Return Render_template ("index.html",
title = ' Home ',
user = user,
posts = posts)
Using an array to store the user's article, each array element is a dictionary, as shown in the code above, this Dict key is author and body, used to store the author and
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.