15.08.2013 Views

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

Ektron® eWebEditPro Developer's Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Here is an example of a line that calls the custom tag.<br />

Integrating <strong>eWebEditPro</strong> with ColdFusion<br />

<br />

Adding a Submit Button<br />

Argument Description<br />

name A name for the editor. This is the name of the element<br />

that is sent to the server.<br />

width,<br />

height<br />

initial<br />

content<br />

As of build 2.0.0.30, the CF custom tag includes the<br />

attribute EditorName as an alternative to Name.<br />

EditorName is needed if the CFMODULE tag is used<br />

to instantiate editor instead of .<br />

Example<br />

<br />

The width and height of the editor in percent or pixels.<br />

• If a percent, enclose the value in quotes (““) and follow<br />

it with a percent sign (%), for example “50%”.<br />

• If pixels, quotes are optional, for example, 500.<br />

If you want some text to appear in the editor the first<br />

time a user views it, you can enter text or a variable that<br />

contains the text.<br />

• To enter text, enclose it within quotes (““).<br />

• To enter a variable, define it elsewhere in the file.<br />

In this example, the initial content is defined in the variable initial_content,<br />

which is defined elsewhere in the file.<br />

You can change ColdFusion custom tag attributes if you want this instance of the<br />

editor to be different from the standard. For more information, see ”<strong>eWebEditPro</strong>’s<br />

Custom Tag” on page 553.<br />

Add a standard HTML submit button that allows the user to send the content to<br />

the Web server after entering it. Here is an example of a line that contains a<br />

submit button.<br />

<br />

<strong>Ektron®</strong> <strong>eWebEditPro</strong> Developer’s <strong>Reference</strong> <strong>Guide</strong>, Release 5.1, Revision 1 552

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!