Use of ewebeditor

Source: Internet
Author: User

The ewebeditor is an online HTML editor that can be embedded in our system and can be easily edited in HTML format. This is precisely because of this (of course there are other functions, such as file upload management, but I am not using it. Speaking of this, I suddenly thought that the text editor that I wrote casually in the blog garden is also an application of the ewebeditor product.) We can go to ASP. it is used in the. NET system. For example, when sending an email, the format of the email content can be controlled through ewebeditor, the actual replacement of the relevant characters in it can achieve good control of the mail subject format.

The procedure is as follows:

1. After downloading and decompressing the file, create a new ewebeditor folder under the root directory of the web site, and put all the decompressed ewebeditor files in the new folder ewebeditor.

2. Call. The process is very simple. It is called through the framework IFRAME.

< IFRAME ID = "Ewebeditor1" SRC = "~ /Ewebeditor/ewebeditor.htm? Id = content1 & Style = standard" Frameborder = "0" Scrolling = "No" Width = "500" Height = "350" > </ IFRAME >  

Parameter description:

Parameter ID: the name of the associated form item, that is, the name of the form item to be referenced on the submit and save page. Make sure that the ID is different for multiple calls. See the following example.
Style: The style name used. It can be a standard style name or a custom style name. If the standard style is used, leave it blank.
Width, height: according to actual needs, ewebeditor will automatically adjust and adapt
In the background management, you can get the best call for each styleCode
All entry parameters: (that is, ewebeditor. asp? Parameters)

ID: the name of the associated form item for saving and editing content, that is, the name of the form item to be referenced on the submit and save page.
Style: the name of the style to use. It can be a standard style name or a custom style name. If you use the standard style, leave it blank.
Originalfilename: name of the form item associated with the list of stored and uploaded original file names. It must be of the input type and can contain the onchange event [Example]
Savefilename: the name of the form item associated with the list of saved upload and saved file names. It must be of the input type and can contain the onchange event [Example]
Savepathfilename: name of the form item associated with the file name (with Path) for storing, uploading, and storing objects. It must be of the input type and can contain an onchange event.

We set parameters as above (note the settings of ID and style in the src attribute, frameborder = "0", scrolling = "no" will not change, and width and height will be adjusted as needed) you can.

< Th Width = "240" Align = "Left" Valign = "Middle" Scope = "Col" Colspan = "3" >
< Input Type = "Hidden" ID = "Txtemailcontent" Name = "Txtcontent" Value = "" Runat = "Server"   />
< IFRAME ID = "Ewebeditor1" SRC = '<% = Page. resolveurl ("~ /Ewebeditor/ewebeditor.htm? Id = txtemailcontent & Style = gray ") % > 'Frameborder = "0" scrolling = "no" width = "600" Height = "250"> </ IFRAME >
</ Th >

The txtemailcontent control with ID is hidden. We associate the content in ewebeditor1 with txtemailcontent: the assignment of txtemailcontent will be displayed in ewebeditor1, on the other hand, we use txtemailcontent to save the changes to the data in ewebeditor1. The use of ewebeditor is so simple.

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.