Ephox Home Page Ephox Home Page  
Search
Buy/Upgrade
 
 Developers
Developers Home
EditLive! for Java
EditLive! for Windows
System Requirements
Getting Started
Integration Samples
Articles
API Reference
EditLive! for XML
Discussion Forums

ClearFontColors Method

Clears the list of font colors available to end-users.

Applies To

EditLive Object

Syntax

JavaScript object.clearFontColors();
 

Examples

JavaScript

The following example would clear the font color list available to the end-users.

function EditLive1_onload() {
    editLive1.setEditLiveMode( 'HTMLString' );
    editLive1.clearFontList();
    editLive1.loadFont( 'Times New Roman' );
    editLive1.loadFont( 'Verdana' );
    editLive1.clearFontColors();
    editLive1.loadFontColor( 'blue' );
    editLive1.loadFontColor( '#FF8C00' );
    editLive1.clearFontSizeList();
    editLive1.loadFontSize( '1' );
    editLive1.loadFontSize( '3' );
}

Remarks

When this method is called using JavaScript it must begin with a lowercase 'c'.

New font colors can be loaded using the LoadFontColor method.

Calling this method will have no affect if the AllowFontColor property is set to false.

Minimum Version

EditLive! 1.5 or greater.

See Also

 

 

Copyright © 1999-2005 Ephox Corporation. All Rights Reserved. 'Ephox' is a registered trademark of Ephox Corporation.
Java and the Java Powered logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.