inputEx-library

inputEx  0.7.1

inputEx-library > inputEx > inputEx.RTEField
Search:
 
Filters

Class inputEx.RTEField - extends inputEx.Field

Wrapper for the Rich Text Editor from YUI

Constructor

inputEx.RTEField ( options )
Parameters:
options <Object> Added options:
  • opts: the options to be added when calling the RTE constructor (see YUI RTE)
  • editorType: if == 'simple', the field will use the SimpleEditor. Any other value will use the Editor class.

Properties inherited from inputEx.Field:

Methods

filter_msword

String filter_msword ( value )
Filters out msword html comments, classes, and other junk (complementary with YAHOO.widget.SimpleEditor.prototype.filter_msword, when filterWord option is true)
Parameters:
value <String> The html string
Returns: String
The html string

getValue

String getValue ( )
Get the html string
Returns: String
the html string

renderComponent

void renderComponent ( )
Render the field using the YUI Editor widget

setOptions

void setOptions ( options )
Set the default values of the options
Parameters:
options <Object> Options object as passed to the constructor

setValue

void setValue ( value , [sendUpdatedEvt] )
Set the html content
Parameters:
value <String> The html string
[sendUpdatedEvt] <boolean> (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)

Events inherited from inputEx.Field:


Copyright © 2011 Eric Abouaf All rights reserved.