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.

<strong>eWebEditPro</strong>MsgsFilename,<br />

"ewep.js",<br />

"mycustomevents.js"];<br />

The ewebeditpromedia File<br />

Customizable JavaScript Files<br />

This file lets you customize the external media file selection process. It is<br />

referenced during media selection to let the user insert (and possibly upload) an<br />

image into the editor.<br />

This file contains only one function.<br />

function <strong>eWebEditPro</strong>MediaSelection(sEditorName)<br />

In the sEditorName parameter, enter the name of the editor that calls the<br />

function. (See Also: “Appendix A: Naming the <strong>eWebEditPro</strong> Editor” on page 576.)<br />

This function is called when an external image selection mechanism is specified<br />

in the transport type property of the mediafiles feature in the config.xml<br />

data. The function determines which page to load. This page should perform the<br />

media upload plus any other custom operations, such as login or advertisements.<br />

Below is an example entry in the configuration data.<br />

<br />

<br />

The above entry causes the page coldfusion/database/<br />

mediamanager.cfm to load during the image selection process.<br />

For more information, see “Customizing the Popup Button” on page 189.<br />

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

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

Saved successfully!

Ooh no, something went wrong!