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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Entering the Button<br />

Integrating <strong>eWebEditPro</strong> Using JavaScript<br />

NOTE If you decide to use hidden field or a text field, read ”Encoding Characters in the<br />

Value Attribute” on page 569 for important details about the value attribute.<br />

Argument Description<br />

To add the button to the page, enter a line with the following elements.<br />

<br />

<br />

<br />

button name Enter a button name within quotes (“ “). This is the field name of the button that by<br />

default is . To change the button type, see ”Customizing<br />

the Popup Button” on page 189.<br />

textarea<br />

name<br />

Enter the name of the textarea within quotes (" ").The field name must match the field<br />

named in the textarea declaration.<br />

For example<br />

<br />

<br />

<br />

NOTE To edit the button text, open the ewebeditpromessages.js file using a standard<br />

text editor. Within that file, edit the text within quotes that follows<br />

popupButtonCaption:.<br />

Encoding Characters in the Value Attribute<br />

Initial content for the editor is typically stored in the value attribute of a hidden<br />

field. For example,<br />

<br />

If the content includes a quote ("), greater or less than character (), or an<br />

ampersand (&), the browser prematurely terminates the display of the content.<br />

For example, the input declaration<br />

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

Saved successfully!

Ooh no, something went wrong!