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.

Placing the Editor on the Form<br />

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

Place the editor within the form tags as a box whose width and height you specify.<br />

This illustration depicts the editor appearing as a box.<br />

For each editor that you want to place on the Web page, you<br />

• change parameter values as needed<br />

• insert the editor<br />

Changing Parameter Values<br />

If you want to change parameters that affect all instances of the editor, edit the<br />

ewebeditprodefaults.js file using a standard text editor. (For a description of each<br />

parameter, see “Customizable JavaScript Files” on page 227.)<br />

To change the parameters only for the instance of <strong>eWebEditPro</strong> that you are<br />

placing on the JSP page, enter the following code. In this example, you remove<br />

the About button ( ) from the toolbar.<br />

<br />

<strong>eWebEditPro</strong>.parameters.reset();<br />

<strong>eWebEditPro</strong>.parameters.hideAboutButton="False";<br />

<br />

If you are placing more than one editor on a page, and you want the parameters<br />

for each editor to be different, begin the parameter code with<br />

<strong>eWebEditPro</strong>.parameters.reset(). This line restores the parameters to<br />

the default values set in ewebeditprodefaults.js.<br />

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

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

Saved successfully!

Ooh no, something went wrong!