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
|