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.

ActiveX Control<br />

Web masters can exert control over <strong>eWebEditPro</strong>’s functionality and content<br />

through modifying the ActiveX control properties and methods.<br />

This section explains the properties, methods and events of the <strong>eWebEditPro</strong><br />

ActiveX control. It covers the following topics.<br />

• Accessing the ActiveX Control<br />

• ActiveX Properties, Methods and Events<br />

Accessing the ActiveX Control Using JavaScript<br />

There are several ways to access the <strong>eWebEditPro</strong> ActiveX control using<br />

JavaScript. Choose the methods that are most convenient for your situation.<br />

Do not confuse the ActiveX control with the <strong>eWebEditPro</strong> JavaScript object and<br />

the Instance JavaScript object. The JavaScript objects wrap the ActiveX control,<br />

making it very easy to integrate into a Web page. Without them, a developer<br />

would need to write the integration code that moves content in and out of the<br />

editor, detects the browser, and displays a textarea field if the ActiveX control is<br />

not supported.<br />

See ”ActiveX Properties, Methods and Events” on page 246 to learn about<br />

methods, properties, and events associated with the ActiveX control.<br />

See ”JavaScript Objects” on page 236 to learn which methods, properties and<br />

events are associated with JavaScript objects.<br />

<strong>eWebEditPro</strong> JavaScript object<br />

The <strong>eWebEditPro</strong> JavaScript object is accessed directly in JavaScript. It is a<br />

single object that is automatically created when a Web page includes the<br />

ewebeditpro.js file.<br />

IMPORTANT! The <strong>eWebEditPro</strong> JavaScript object is not the ActiveX control. It is required to<br />

access the ActiveX control, but the ActiveX methods (for example, pasteHTML)<br />

are not methods of the <strong>eWebEditPro</strong> JavaScript object.<br />

<strong>eWebEditPro</strong> ActiveX control<br />

<br />

<strong>eWebEditPro</strong><br />

<br />

See Also: ”<strong>eWebEditPro</strong> Object” on page 4<br />

Below are examples how to access the <strong>eWebEditPro</strong> ActiveX control in<br />

JavaScript. In these examples<br />

• the name of the editor is "MyContent1"<br />

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

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

Saved successfully!

Ooh no, something went wrong!