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.

Using Style Sheets to Standardize Formatting<br />

The Default Style Sheet<br />

Style Sheets<br />

You can combine a style sheet with the toolbar configuration procedures (see<br />

“Defining the Toolbar” on page 166) to control the formatting of the content that<br />

users produce.<br />

For example, you could remove from the toolbar the menu options that let users<br />

select font size, color and style. Then, in a style sheet, you would specify a font<br />

size, color and style. If you make these modifications, users can enter text but not<br />

change its size, color or style -- the style sheet has standardized those<br />

specifications.<br />

NOTE The bodyStyle parameter also lets you apply style sheet attributes to the content.<br />

See “Property: bodyStyle” on page 121.<br />

<strong>eWebEditPro</strong> provides a default style sheet, ektnormal.css, that emulates the<br />

Word 2000 Normal.dot template. If you assign this style sheet in the configuration<br />

data, the Word 2000 default styles are applied to the content.<br />

To do this, set the href attribute in the features > standard > style<br />

section of the configuration data to look like this.<br />

<br />

<br />

<br />

Changing the Default Style Sheet<br />

Applying Style Sheets<br />

To change the default style sheet, place the new style sheet into the folder that<br />

contains <strong>eWebEditPro</strong> and replace the named style sheet in the configuration<br />

data (above in red).<br />

For example, if your custom style sheet is named mystyles.css, the configuration<br />

data would look like this:<br />

<br />

You can create your own style sheet and apply it to the <strong>eWebEditPro</strong> editor.<br />

There are three levels at which you can apply a style sheet.<br />

• the configuration data - affects all editors that refer to it (see “The<br />

Configuration Data” on page 248).<br />

NOTE If your <strong>eWebEditPro</strong> pages refer to several config.xml files (for example, you<br />

have different files for different user groups), and you want all pages to use the<br />

same style sheet, assign the same style sheet in all of the configuration data.<br />

• a page - affects only the editors on one page<br />

• a single occurrence of the editor - affects only one instance of the editor<br />

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

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

Saved successfully!

Ooh no, something went wrong!