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.

Implementing Style Class Selectors<br />

Style Sheets<br />

You can add to the toolbar a dropdown list (cmdselstyle) that lets users choose<br />

a style class and apply it to selected text.<br />

See Also: ”Adding a Dropdown List” on page 174<br />

The styles appear in the order in which they are entered into the style sheet<br />

assigned to the editor.<br />

Example of Using Style Class Selectors<br />

If you want to Set the<br />

equivClass<br />

attribute to<br />

Have the new style class replace the original if all of<br />

its properties match the original style class' properties.<br />

Otherwise, the new style class is applied around the<br />

original.<br />

As an example of using style class selectors, assume that your Web site features<br />

text that is sample programming code. The Webmaster would open the<br />

organization’s style sheet, create a style class called “Sample Code” and assign<br />

appropriate formatting specifications to it (such as font-size:9.0pt; fontfamily:"Courier<br />

New").<br />

Then, when a user types sample programming code into the editor, he could<br />

select the code, click the dropdown list, and select Sample Code from the list<br />

(see illustration).<br />

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

strict

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

Saved successfully!

Ooh no, something went wrong!