ASP website use Baidu Ueditor tutorial. txt

Source: Internet
Author: User
Tags blank page

1, according to the website type and the code chooses the corresponding Ueditor version, if my website code is gb2312, then chooses Ueditor 1.43 ASP GBK Edition.
2, the native IE browser should be 8.0 or more, 8.0 or less ueditor 1.43 is not supported.
3, put the Ueditor folder in the root directory of the Web site, in the Web

<script type= "Text/javascript" charset= "GBK" src= "Ueditor/ueditor.config.js" ></script>
<script type= "Text/javascript" charset= "GBK" src= "Ueditor/ueditor.all.js" > </script>
<script type= "Text/javascript" charset= "GBK" src= "Ueditor/lang/zh-cn/zh-cn.js" ></script>

If you open a blank page in a IE8 or 360 browser, insert a line on top and load the Jquery.js file, which is available for download on the Web. Such as
<script type= "Text/javascript" src= "Jqueryui/js/jquery-1.3.2.min.js" > </script>

4. Insert the following code where you want to insert the editor in the Web page, where the code is placed in the form and the outside should be a form. That is, the form flag should be placed outside the table tables, or the value in the editor cannot be passed out, the hint is blank.

<script type= "Text/plain" id= "Myeditor" style= "width:920px; height:500px "name=" art_content "> </script>

<script type= "Text/javascript" > var editor_a = ue.geteditor (' myeditor ');</script>

The editor_a in the above code can be changed to any other name, the first and third Myeditor can be changed to a different name, but should be consistent, the name of Art_content and the art_content in the bottom 5 can be changed to another name, but should be consistent, When data is received from the server, it is primarily identified by name.

If you open a blank page in a IE8 or 360 browser, change the second line of code above to:
<script type= "Text/javascript" >$ (document). Ready (function () {var editor= ue.geteditor (' Myeditor ');}) </script>


5. The following code should be written where the data in the form is received in the Web page:
Content=rtrim (replace (Request.Form ("Art_content"), "", ""))
Content=trim (replace (Request.Form ("Art_content"), "∈", "" "))

can also be shortened to Content=request.form ("Art_content")

6, if the original database content is modified, you should change the code 4 to the following: The main is to add the <%=rs ("Art_content")%> to display the original content.

<script type= "Text/plain" id= "Myeditor" name= "Art_content" ><%=rs ("Art_content")%> </script>
<script type= "Text/javascript" > var editor= ue.geteditor (' myeditor '); </script>

If you open a blank page in a IE8 or 360 browser, change the second line of code above to:
<script type= "Text/javascript" >$ (document). Ready (function () {var editor= ue.geteditor (' Myeditor ');}) </script>

7, Ueditor upload to the site can not upload pictures or attachments when:

Folder ASP has a file uploader.class.asp, which has a check or create the path of the subroutine private Function Checkorcreatepath (ByVal path), in this program there are two sentences parts = Split ( Path, "\") and Path = path + part + "\", you change the backslash in both sentences to "/", that is, the last two sentences should be parts = Split (Path, "/") and Path = path + part + "/", so that OK.
8, in the background to insert the table when the frame line is uniform, but the page is displayed when the outer frame is thick, such as to uniform:
Find ue.commands[' inserttable ' in the Ueditor.all.js file, which has a return ' <table ><tbody> ' + html.join (') + ' </ Tbody></table> ', change to return ' <table style= ' border-collapse:collapse ' ><tbody> ' + html.join (') + ' </tbody></table> ' It will be all right.

Category: Technology

ASP website use Baidu Ueditor tutorial. txt

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.