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.

Description: Indicates if a specified XML tag can be applied at the current cursor<br />

location.<br />

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

Parameters: StrTagName (String) - The number of instances of the custom tag<br />

specified with this parameter is counted.<br />

Returns: True if the specified custom tag wraps the current selection. The tag can<br />

be any tag applied the selection.<br />

If no text is selected, the current cursor location is considered the selection.<br />

Example: You want to verify that a selected style can be applied at the current<br />

cursor location. For example, you may want to verify that a tag is being entered at<br />

the correct location within your DTD.<br />

function ApplyThisTag(sEditorName, strTagInfo)<br />

{<br />

var objEditor = <strong>eWebEditPro</strong>.instances[sEditorName];<br />

}<br />

Method: IsTagApplied<br />

if(objEditor.editor.IsTagApplied("NewsML"))<br />

{<br />

<strong>eWebEditPro</strong>.instances[sEditorName].editor.ExecCommand("cmdcustapplytag", strTagInfo, 0);<br />

}<br />

else<br />

{<br />

alert("You need to be somewhere within the NewsML section to apply this tag.");<br />

}<br />

Method: IsValid<br />

Method: IsVisible<br />

Description: Returns “true” if the interface references a valid command. If the<br />

interface does not reference a valid command, all interface methods and<br />

properties are inactive.<br />

The interface may not reference a valid command if you originally set it by<br />

referencing a command, and then you delete the command through another<br />

interface.<br />

Object: ”ObjectCommand Item Object”<br />

Description: This method returns true if WebImageFX is currently visible to the<br />

user from within <strong>eWebEditPro</strong>. A true value means that the user is currently<br />

editing an image.<br />

This method returns False if WebImageFX is currently not available to the end<br />

user. It may not be currently displayed or it may not be installed.<br />

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

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

Saved successfully!

Ooh no, something went wrong!