Yahoo! UI Library

editor  2.6.0

Yahoo! UI Library > editor > YAHOO.widget.SimpleEditor

Class YAHOO.widget.SimpleEditor - extends YAHOO.util.Element

Known Subclasses:
YAHOO.widget.Editor
The Rich Text Editor is a UI control that replaces a standard HTML textarea; it allows for the rich formatting of text content, including common structural treatments like lists, formatting treatments like bold and italic text, and drag-and-drop inclusion and sizing of images. The Rich Text Editor's toolbar is extensible via a plugin architecture so that advanced implementations can achieve a high degree of customization.

Constructor

YAHOO.widget.SimpleEditor ( el , attrs )
Parameters:
el <String/HTMLElement> The textarea element to turn into an editor.
attrs <Object> Object liternal containing configuration parameters.

Properties

_defaultCSS - String

The default CSS used in the config for 'css'. This way you can add to the config like this: { css: YAHOO.widget.SimpleEditor.prototype._defaultCSS + 'ADD MYY CSS HERE' }

_docType - String

The DOCTYPE to use in the editable container.

_textarea - Boolean

Flag to determine if we are using a textarea or an HTML Node.

afterElement - HTMLElement

A reference to the H2 placed after the editor for Accessibilty.

beforeElement - HTMLElement

A reference to the H2 placed before the editor for Accessibilty.

browser - Object

Standard browser detection

currentElement - Array

A reference to the current working element in the editor

currentEvent - Event

A reference to the current editor event

currentFont - HTMLElement

A reference to the last font selected from the Toolbar

currentWindow - Object

A reference to the currently open EditorWindow

dd - YAHOO.util.DD/YAHOO.util.DDProxy

A reference to the DragDrop object.

dompath - HTMLElement

A reference to the dompath container for writing the current working dom path to.

editorDirty - Boolean

This flag will be set when certain things in the Editor happen. It is to be used by the developer to check to see if content has changed.

el - object

The issue here is that we have no way of knowing where the cursor position is inside of the iframe, so we have to place the newly inserted data in the best place that we can.

invalidHTML - Object

Contains a list of HTML elements that are invalid inside the editor. They will be removed when they are found. If you set the value of a key to "{ keepContents: true }", then the element will be replaced with a yui-non span to be filtered out when cleanHTML is called. The only tag that is ignored here is the span tag as it will force the Editor into a loop and freeze the browser. However.. all of these tags will be removed in the cleanHTML routine.

resize - YAHOO.util.Resize

A reference to the Resize object

sel - object

This work around traps the MouseUp event and sets a timer to check if another MouseUp event fires in so many seconds. If another event is fired, they we internally fire the DoubleClick event.

SEP_DOMPATH - String

The value to place in between the Dom path items

STR_BEFORE_EDITOR - String

The accessibility string for the element before the iFrame

STR_IMAGE_HERE - String

The text to place in the URL textbox when using the blankimage.

STR_LEAVE_EDITOR - String

The accessibility string for the element after the iFrame

STR_LINK_URL - String

The label string for the Link URL.

STR_TITLE - String

The Title of the HTML document that is created in the iFrame

toolbar - YAHOO.widget.Toolbar

Local property containing the YAHOO.widget.Toolbar instance

Properties inherited from YAHOO.util.Element:

Properties inherited from YAHOO.util.AttributeProvider:

Methods

_cleanIncomingHTML

String _cleanIncomingHTML ( html )
Process the HTML with a few regexes to clean it up and stabilize the input
Parameters:
html <String> The unfiltered HTML
Returns: String
The filtered HTML

_setEditorStyle

void _setEditorStyle ( stat )
Set the editor to use CSS instead of HTML
Parameters:
stat <Booleen> True/False
Returns: void

cleanHTML

String cleanHTML ( html )
Process the HTML with a few regexes to clean it up and stabilize the output
Parameters:
html <String> The unfiltered HTML
Returns: String
The filtered HTML

clearEditorDoc

void clearEditorDoc ( )
Clear the doc of the Editor
Returns: void

closeWindow

void closeWindow ( )
Override Method for Advanced Editor
Returns: void

cmd_backcolor

void cmd_backcolor ( value )
This is an execCommand override method. It is called from execCommand when the execCommand('backcolor') is used.
Parameters:
value <object> Value passed from the execCommand method
Returns: void

cmd_createlink

void cmd_createlink ( value )
This is an execCommand override method. It is called from execCommand when the execCommand('createlink') is used.
Parameters:
value <object> Value passed from the execCommand method
Returns: void

cmd_fontname

void cmd_fontname ( value )
This is an execCommand override method. It is called from execCommand when the execCommand('fontname') is used.
Parameters:
value <object> Value passed from the execCommand method
Returns: void

cmd_fontsize

void cmd_fontsize ( value )
This is an execCommand override method. It is called from execCommand when the execCommand('fontsize') is used.
Parameters:
value <object> Value passed from the execCommand method
Returns: void

cmd_forecolor

void cmd_forecolor ( value )
This is an execCommand override method. It is called from execCommand when the execCommand('forecolor') is used.
Parameters:
value <object> Value passed from the execCommand method
Returns: void

cmd_inserthtml

void cmd_inserthtml ( value )
This is an execCommand override method. It is called from execCommand when the execCommand('inserthtml') is used.
Parameters:
value <object> Value passed from the execCommand method
Returns: void

cmd_insertimage

void cmd_insertimage ( value )
This is an execCommand override method. It is called from execCommand when the execCommand('insertimage') is used.
Parameters:
value <object> Value passed from the execCommand method
Returns: void

cmd_insertorderedlist

void cmd_insertorderedlist ( value )
This is an execCommand override method. It is called from execCommand when the execCommand('insertorderedlist ') is used.
Parameters:
value <object> Value passed from the execCommand method
Returns: void

cmd_insertunorderedlist

void cmd_insertunorderedlist ( value )
This is an execCommand override method. It is called from execCommand when the execCommand('insertunorderedlist') is used.
Parameters:
value <object> Value passed from the execCommand method
Returns: void

cmd_list

void cmd_list ( tag )
This is a combined execCommand override method. It is called from the cmd_insertorderedlist and cmd_insertunorderedlist methods.
Parameters:
tag <object> The tag of the list you want to create (eg, ul or ol)
Returns: void

cmd_underline

void cmd_underline ( value )
This is an execCommand override method. It is called from execCommand when the execCommand('underline') is used.
Parameters:
value <object> Value passed from the execCommand method
Returns: void

cmd_unlink

void cmd_unlink ( value )
This is an execCommand override method. It is called from execCommand when the execCommand('unlink') is used.
Parameters:
value <object> Value passed from the execCommand method
Returns: void

destroy

Boolean destroy ( )
Destroys the editor, all of it's elements and objects.
Returns: Boolean

execCommand

void execCommand ( action , value )
This method attempts to try and level the differences in the various browsers and their support for execCommand actions
Parameters:
action <String> The "execCommand" action to try to execute (Example: bold, insertimage, inserthtml)
value <String> (optional) The value for a given action such as action: fontname value: 'Verdana'
Returns: void

filter_all_rgb

filter_all_rgb ( String )
Converts all RGB color strings found in passed string to a hex color, example: style="color: rgb(0, 255, 0)" converts to style="color: #00ff00"
Parameters:
String <object> str The HTML string to filter

filter_internals

filter_internals ( String )
Filters internal RTE strings and bogus attrs we don't want
Parameters:
String <object> html The HTML string to filter

filter_invalid_lists

void filter_invalid_lists ( String )
Filters invalid ol and ul list markup, converts this:
    1. ..
    to this:
    1. ..
  • Parameters:
    String <object> html The HTML string to filter
    Returns: void

    filter_rgb

    filter_rgb ( String )
    Converts an RGB color string to a hex color, example: rgb(0, 255, 0) converts to #00ff00
    Parameters:
    String <object> css The CSS string containing rgb(#,#,#);

    filter_safari

    filter_safari ( String )
    Filters strings specific to Safari
    Parameters:
    String <object> html The HTML string to filter

    getEditorHTML

    void getEditorHTML ( )
    Gets the unprocessed/unfiltered HTML from the editor
    Returns: void

    hide

    void hide ( )
    This method needs to be called if the Editor is to be hidden (like in a TabView or Panel). It should be called to clear timeouts and close open editor windows.
    Returns: void

    init

    void init ( )
    The Editor class' initialization method
    Returns: void

    initAttributes

    void initAttributes ( attr )
    Initializes all of the configuration attributes used to create the editor.
    Parameters:
    attr <Object> Object literal specifying a set of configuration attributes used to create the editor.
    Returns: void

    moveWindow

    void moveWindow ( )
    Override Method for Advanced Editor
    Returns: void

    nodeChange

    void nodeChange ( force )
    Handles setting up the toolbar buttons, getting the Dom path, fixing nodes.
    Parameters:
    force <Boolean> Optional paramenter to skip the threshold counter
    Returns: void

    openWindow

    void openWindow ( )
    Override Method for Advanced Editor
    Returns: void

    post_filter_linebreaks

    post_filter_linebreaks ( String )
    HTML Pre Filter
    Parameters:
    String <object> html The HTML to filter
    String <object> markup The markup type to filter to

    pre_filter_linebreaks

    pre_filter_linebreaks ( String )
    HTML Pre Filter
    Parameters:
    String <object> html The HTML to filter
    String <object> markup The markup type to filter to

    render

    void render ( )
    Calls the private method _render in a setTimeout to allow for other things on the page to continue to load.
    Returns: void

    saveHTML

    saveHTML ( )
    Cleans the HTML with the cleanHTML method then places that string back into the textarea.

    setEditorHTML

    void setEditorHTML ( incomingHTML )
    Loads HTML into the editors body
    Parameters:
    incomingHTML <String> The html content to load into the editor
    Returns: void

    show

    void show ( )
    This method needs to be called if the Editor was hidden (like in a TabView or Panel). It is used to reset the editor after being in a container that was set to display none.
    Returns: void

    toString

    String toString ( )
    Returns a string representing the editor.
    Returns: String

    Events

    afterExecCommand

    afterExecCommand ( )
    Event fires at the end of the execCommand process. See Element.addListener for more information on listening for this event.

    afterNodeChange

    afterNodeChange ( )
    Event fires at the end of the nodeChange process. See Element.addListener for more information on listening for this event.

    afterRender

    afterRender ( )
    Event is fired after the render process finishes. See Element.addListener for more information on listening for this event.

    animateChange

    animateChange ( event )
    Fires when the value for the configuration attribute 'animate' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeAnimateChange

    beforeAnimateChange ( event )
    Fires before the value for the configuration attribute 'animate' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeBlankimageChange

    beforeBlankimageChange ( event )
    Fires before the value for the configuration attribute 'blankimage' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeCssChange

    beforeCssChange ( event )
    Fires before the value for the configuration attribute 'css' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeDisabledChange

    beforeDisabledChange ( event )
    Fires before the value for the configuration attribute 'disabled' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeDompathChange

    beforeDompathChange ( event )
    Fires before the value for the configuration attribute 'dompath' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeEditorClick

    beforeEditorClick ( ev )
    Fires before editor event, returning false will stop the internal processing.
    Parameters:
    ev <Event> The DOM Event that occured

    beforeEditorDoubleClick

    beforeEditorDoubleClick ( ev )
    Fires before editor event, returning false will stop the internal processing.
    Parameters:
    ev <Event> The DOM Event that occured

    beforeEditorKeyDown

    beforeEditorKeyDown ( ev )
    Fires before editor event, returning false will stop the internal processing.
    Parameters:
    ev <Event> The DOM Event that occured

    beforeEditorKeyPress

    beforeEditorKeyPress ( ev )
    Fires before editor event, returning false will stop the internal processing.
    Parameters:
    ev <Event> The DOM Event that occured

    beforeEditorKeyUp

    beforeEditorKeyUp ( ev )
    Fires before editor event, returning false will stop the internal processing.
    Parameters:
    ev <Event> The DOM Event that occured

    beforeEditorMouseDown

    beforeEditorMouseDown ( ev )
    Fires before editor event, returning false will stop the internal processing.
    Parameters:
    ev <Event> The DOM Event that occured

    beforeEditorMouseUp

    beforeEditorMouseUp ( ev )
    Fires before editor event, returning false will stop the internal processing.
    Parameters:
    ev <Event> The DOM Event that occured

    beforeExecCommand

    beforeExecCommand ( )
    Event fires at the beginning of the execCommand process. See Element.addListener for more information on listening for this event.

    beforeExtracssChange

    beforeExtracssChange ( event )
    Fires before the value for the configuration attribute 'extracss' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeFocusAtStartChange

    beforeFocusAtStartChange ( event )
    Fires before the value for the configuration attribute 'focusAtStart' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeHandleSubmitChange

    beforeHandleSubmitChange ( event )
    Fires before the value for the configuration attribute 'handleSubmit' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeHeightChange

    beforeHeightChange ( event )
    Fires before the value for the configuration attribute 'height' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeHtmlChange

    beforeHtmlChange ( event )
    Fires before the value for the configuration attribute 'html' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeMarkupChange

    beforeMarkupChange ( event )
    Fires before the value for the configuration attribute 'markup' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeNodeChange

    beforeNodeChange ( )
    Event fires at the beginning of the nodeChange process. See Element.addListener for more information on listening for this event.

    beforeRemoveLineBreaksChange

    beforeRemoveLineBreaksChange ( event )
    Fires before the value for the configuration attribute 'removeLineBreaks' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeToolbarChange

    beforeToolbarChange ( event )
    Fires before the value for the configuration attribute 'toolbar' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    beforeWidthChange

    beforeWidthChange ( event )
    Fires before the value for the configuration attribute 'width' changes. Return false to cancel the attribute change.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    blankimageChange

    blankimageChange ( event )
    Fires when the value for the configuration attribute 'blankimage' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    cleanHTML

    cleanHTML ( )
    Event is fired after the cleanHTML method is called.

    cssChange

    cssChange ( event )
    Fires when the value for the configuration attribute 'css' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    disabledChange

    disabledChange ( event )
    Fires when the value for the configuration attribute 'disabled' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    dompathChange

    dompathChange ( event )
    Fires when the value for the configuration attribute 'dompath' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    editorClick

    editorClick ( ev )
    Passed through HTML Event. See Element.addListener for more information on listening for this event.
    Parameters:
    ev <Event> The DOM Event that occured

    editorContentLoaded

    editorContentLoaded ( )
    Event is fired after the editor iframe's document fully loads and fires it's onload event. From here you can start injecting your own things into the document. See Element.addListener for more information on listening for this event.

    editorDoubleClick

    editorDoubleClick ( ev )
    Passed through HTML Event. See Element.addListener for more information on listening for this event.
    Parameters:
    ev <Event> The DOM Event that occured

    editorKeyDown

    editorKeyDown ( ev )
    Passed through HTML Event. See Element.addListener for more information on listening for this event.
    Parameters:
    ev <Event> The DOM Event that occured

    editorKeyPress

    editorKeyPress ( ev )
    Passed through HTML Event. See Element.addListener for more information on listening for this event.
    Parameters:
    ev <Event> The DOM Event that occured

    editorKeyUp

    editorKeyUp ( ev )
    Passed through HTML Event. See Element.addListener for more information on listening for this event.
    Parameters:
    ev <Event> The DOM Event that occured

    editorMouseDown

    editorMouseDown ( ev )
    Passed through HTML Event. See Element.addListener for more information on listening for this event.
    Parameters:
    ev <Event> The DOM Event that occured

    editorMouseUp

    editorMouseUp ( ev )
    Passed through HTML Event. See Element.addListener for more information on listening for this event.
    Parameters:
    ev <Event> The DOM Event that occured

    extracssChange

    extracssChange ( event )
    Fires when the value for the configuration attribute 'extracss' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    focusAtStartChange

    focusAtStartChange ( event )
    Fires when the value for the configuration attribute 'focusAtStart' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    handleSubmitChange

    handleSubmitChange ( event )
    Fires when the value for the configuration attribute 'handleSubmit' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    heightChange

    heightChange ( event )
    Fires when the value for the configuration attribute 'height' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    htmlChange

    htmlChange ( event )
    Fires when the value for the configuration attribute 'html' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    markupChange

    markupChange ( event )
    Fires when the value for the configuration attribute 'markup' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    removeLineBreaksChange

    removeLineBreaksChange ( event )
    Fires when the value for the configuration attribute 'removeLineBreaks' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    toolbarChange

    toolbarChange ( event )
    Fires when the value for the configuration attribute 'toolbar' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    toolbarLoaded

    toolbarLoaded ( )
    Event is fired during the render process directly after the Toolbar is loaded. Allowing you to attach events to the toolbar. See Element.addListener for more information on listening for this event.

    widthChange

    widthChange ( event )
    Fires when the value for the configuration attribute 'width' changes.
    Parameters:
    event <{oldValue: any, newValue: any}> An object containing the previous attribute value and the new value.

    Configuration Attributes

    allowNoEdit - Boolean

    Should the editor check for non-edit fields. It should be noted that this technique is not perfect. If the user does the right things, they will still be able to make changes. Such as highlighting an element below and above the content and hitting a toolbar button or a shortcut key.
    Default Value: false

    animate - Boolean

    Should the editor animate window movements
    Default Value: false unless Animation is found, then true

    autoHeight - Boolean || Number

    Remove the scrollbars from the edit area and resize it to fit the content. It will not go any lower than the current config height.
    Default Value: false

    blankimage - String

    The URL for the image placeholder to put in when inserting an image.
    Default Value: The yahooapis.com address for the current release + 'assets/blankimage.png'

    css - String

    The Base CSS used to format the content of the editor
    Default Value:
    html {
    height: 95%;
    }
    body {
    height: 100%;
    padding: 7px; background-color: #fff; font:13px/1.22 arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;
    }
    a {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
    }
    .warning-localfile {
    border-bottom: 1px dashed red !important;
    }
    .yui-busy {
    cursor: wait !important;
    }
    img.selected { //Safari image selection
    border: 2px dotted #808080;
    }
    img {
    cursor: pointer !important;
    border: none;
    }
    

    disabled - Boolean

    This will toggle the editor's disabled state. When the editor is disabled, designMode is turned off and a mask is placed over the iframe so no interaction can take place. All Toolbar buttons are also disabled so they cannot be used.
    Default Value: false

    dompath - Boolean

    Toggle the display of the current Dom path below the editor
    Default Value: false

    drag - {Boolean/String}

    Set this config to make the Editor draggable, pass 'proxy' to make use YAHOO.util.DDProxy.

    element_cont - HTMLElement

    Internal config for the editors container
    Default Value: false

    extracss - String

    Extra user defined css to load after the default SimpleEditor CSS
    Default Value: ''

    focusAtStart - Boolean

    Should we focus the window when the content is ready?
    Default Value: false

    handleSubmit - Boolean

    Config handles if the editor will attach itself to the textareas parent form's submit handler. If it is set to true, the editor will attempt to attach a submit listener to the textareas parent form. Then it will trigger the editors save handler and place the new content back into the text area before the form is submitted.
    Default Value: false

    height - String

    The height of the editor iframe container, not including the toolbar..
    Default Value: Best guessed size of the textarea, for best results use CSS to style the height of the textarea or pass it in as an argument

    html - String

    The default HTML to be written to the iframe document before the contents are loaded (Note that the DOCTYPE attr will be added at render item)
    Default Value: This HTML requires a few things if you are to override:

    {TITLE}, {CSS}, {HIDDEN_CSS}, {EXTRA_CSS} and {CONTENT} need to be there, they are passed to YAHOO.lang.substitute to be replace with other strings.

    onload="document.body._rteLoaded = true;" : the onload statement must be there or the editor will not finish loading.

    <html>
    <head>
    <title>{TITLE}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <style>
    {CSS}
    </style>
    <style>
    {HIDDEN_CSS}
    </style>
    <style>
    {EXTRA_CSS}
    </style>
    </head>
    <body onload="document.body._rteLoaded = true;">
    {CONTENT}
    </body>
    </html>
    

    insert - Boolean

    If true, selection is not required for: fontname, fontsize, forecolor, backcolor.
    Default Value: false

    limitCommands - Boolean

    Should the Editor limit the allowed execCommands to the ones available in the toolbar. If true, then execCommand and keyboard shortcuts will fail if they are not defined in the toolbar.
    Default Value: false

    markup - String

    Should we try to adjust the markup for the following types: semantic, css, default or xhtml
    Default Value: "semantic"

    maxUndo - Number

    The max number of undo levels to store.
    Default Value: 30

    nodeChangeDelay - Number

    Do we wrap the nodeChange method in a timeout for performance, default: true.
    Default Value: true

    nodeChangeThreshold - Number

    The number of seconds that need to be in between nodeChange processing
    Default Value: 3

    panel - Boolean

    A reference to the panel we are using for windows.
    Default Value: false

    plainText - Boolean

    Process the inital textarea data as if it was plain text. Accounting for spaces, tabs and line feeds.
    Default Value: false

    ptags - Boolean

    If true, the editor uses

    tags instead of
    tags. (Use Shift + Enter to get a
    )

    Default Value: false

    removeLineBreaks - Boolean

    Should we remove linebreaks and extra spaces on cleanup
    Default Value: false

    resize - Boolean

    Set this to true to make the Editor Resizable with YAHOO.util.Resize. The default config is available: myEditor._resizeConfig Animation will be ignored while performing this resize to allow for the dynamic change in size of the toolbar.

    saveEl - HTMLElement

    When save HTML is called, this element will be updated as well as the source of data.
    Default Value: element

    toolbar - Object

    The default toolbar config.

    toolbar_cont - Boolean

    Internal config for the toolbars container
    Default Value: false

    width - String

    The width of the editor container.
    Default Value: Best guessed size of the textarea, for best results use CSS to style the width of the textarea or pass it in as an argument

    Configuration attributes inherited from YAHOO.util.Element:


    Copyright © 2008 Yahoo! Inc. All rights reserved.