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.

Parameters<br />

Method: SetContent<br />

Parameter Type Description<br />

Configuration String The location of the configuration or the<br />

stream of XML characters defining the<br />

configuration.<br />

Description: Assigns the given content to the editor session. Supported content<br />

types are listed in ”Content Type Categories” on page 507.<br />

If a content type requires the editor be in a special mode, such as Data Design,<br />

XML, HTML mode, the editor switches into the mode that allows the content to be<br />

processed.<br />

Object: ”<strong>eWebEditPro</strong> ActiveX Control Object”<br />

Parameters:<br />

Return Value: Boolean - True if successful<br />

Example:<br />

objInstance.editor.SetContent("htmlbody", strBody, "");<br />

NOTE If the editor and the field have the same name, but you want to set the value of the<br />

editor content to something other than the default text, the value that you set does<br />

not get displayed. This is because the editor and field names are the same, so the<br />

default text of the editor takes precedence over the set value. To change the<br />

default content, assign unique names to the editor and field.<br />

Method: setDocument<br />

Parameter Type Description<br />

Type String The type of content being set.<br />

Content String The content to place into the current<br />

session.<br />

Data String If this is not an empty string, it is a string<br />

of data to associate with the given<br />

content.<br />

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

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

Saved successfully!

Ooh no, something went wrong!