CF_eWebEditPro
EWebEditPro is a web-based, WYSIWYG second generation editor for web content, allowing content managers to create and edit web pages in a word processor-like environment directly from a web browser.
Circa 3000 supports the eWebEditPro tag as a free service to our hosting customers. However, eWebEditPro is a commercial product that requires a license key, available for purchase from the product's creators at Ektron, Inc..
EWebEditPro is a full-featured product. For complete instructions, consult the eWebEditPro online documentation:
Circa recommends that developers deploying eWebEditPro on their ColdFusion web sites copy the User's Guide to those sites and make it available to your end-users.
SYNTAX:
<form action="myeditpage.cfm?preview" method="post">
<CF_eWebEditPro
name = "Editor1"
width = "100%"
height = "555"
value = "#Initial Content#"
WDDX = "#FontWDDXPacket# #ImageWDDXPacket# #HyperLinkWDDXacket#">
<input type="submit" name="btnSubmit" value="Submit">
</form>
ATTRIBUTES:
Name
The name assigned to this instance of the editor.
Width
Width of the editor window. Accepts relative (%) or specific values.
Height
Height of the editor window. Accepts relative (%) or specific values.
Value
Default content of editor window.
Path
Depracated. Now specified in ewebeditpro.js.
StyleSheetFileName
URL of a style sheet file (.css). The style sheet formats content displayed in the editor. The .css file must reside in the server’s /ewebeditpro/ directory.
MaxContentSize
The largest number of characters that can be saved in the editor window. If a user enters content that exceeds this size, an error message appears.
License
Depracated. Now specified in ewebeditpro.js. Send a copy of your license key to Circa's support department at Support@Circa3k.com. We will install your license key into the ewebeditpro.js file for you.
Locale
The URL of the localization directory or file. [For details, see “Customizing the Language of eWebEditPro” on page 10 of the Developer's Guide.]
Options
The URL of the options XML file. Although this ActiveX control property can contain the XML content, it typically refers to an XML file. [For details, see “The Options XML File” on page 16 of the Developer's Guide.]
WDDX
The WDDX packet data. [For details, see “The WDDX Packet” on page 21 of the Developer's Guide.]
BackColor
The background color of the editor window.
ForeColor
The default color of the text.
FontName
The default font.
FontSize
The default font size.
FTPServer
The destination URL for image files that users upload via FTP. With this ActiveX control property set, users can copy images from their client computer to the server.
An FTPServer address may be a domain name (ftp.mycompany.com) or an IP address (192.168.0.1). The URL may contain a path to a subdirectory, such as ftp.mycompany.com/images or 192.168.0.1/images. ImagesPath is not appended to FTPServer.
If you do not specify an FTPServer ActiveX control property, FTP is not permitted.
FTPUsername
The username needed to access the FTP site. Leave this ActiveX control property blank if you want to allow anonymous login.
FTPPassword
The password needed to access the FTP site. Leave this ActiveX control property blank if you want to allow anonymous login.
ImagesPath
This parameter can be used in one of two modes:
When used with FTPServer or PostingAcceptor:
Specifies the path to the images directory relative to the hostname. For example, if the images are located at “http://www.mycompany.com/images“, set the ImagesPath ActiveX control property to “images”.
ImagesPath is not appended to FTPServer.
When used on a LAN without FTP or PostingAcceptor:
Specifies the full path to the images directory on the server. The server must be accessible via the LAN. For example, "//web server/InetPub/wwwroot/images".
AllowCustomize
Specifies whether the user can customize the toolbar. Set to “False” to prevent the user from changing the toolbar. Default value is “True.”
Note that buttons removed by the Buttons ActiveX control property do not appear in the Customize Toolbar dialog box and, therefore, cannot be added by the user.
ButtonsAbout
Set to "False" to remove the About button from the toolbar.
ButtonsAlign
Set to "False" to remove the Left, Center, and Right Justify alignment buttons from the toolbar.
ButtonsTable
Set to "False" to remove the Table button from the toolbar.
ButtonsBullets
Set to "False" to remove the Bulleted List and Numbered List buttons from the toolbar.
ButtonsEdit
Set to "False" to remove the Cut, Copy, Paste and Undo buttons from the toolbar.
ButtonsFind
Set to "False" to remove the Find button from the toolbar.
ButtonsFontColor
Set to "False" to remove the Font Color button from the toolbar.
ButtonsFontSize
Set to "False" to remove the Font Size button from the toolbar.
ButtonsFontStyle
Set to "False" to remove the Bold, Italic and Underline buttons from the toolbar.
ButtonsHyperlink
Set to "False" to remove the Hyperlink and Bookmark buttons from the toolbar.
ButtonsIndent
Set to "False" to remove the Increase and Decrease Indent buttons from the toolbar.
ButtonsPicture
Set to "False" to remove the Picture button from the toolbar.
ButtonsSpelling
Set to "False" to remove the Check Spelling and Check Spelling As You Type buttons from the toolbar.
OnDblClickElement (oElement)
Double-clicking on a hyperlink, applet, object, image, or table will cause this event to fire. See the ewebeditproevents.js file for an example of how to respond to this event.
oElement is a reference to the element object. See a DOM reference for complete details on the element object. A few of the most useful common properties of the element object are listed below. Other properties are dependant on the type of element.
tag name
The element’s tag. For example, oElement.tagName+””;
NOTE: The plus sign (+) converts the tag name to a string.
outerHTML
The entire HTMLtext of the element including the tag.
|