Properties Methods Events Config Options Direct Link
Observable
  Component
    BoxComponent
      Field
        HtmlEditor

Class Ext.form.HtmlEditor

Package:Ext.form
Defined In:HtmlEditor.js
Class:HtmlEditor
Extends:Field
Provides a lightweight HTML Editor component.

Note: The focus/blur and validation marking functionality inherited from Ext.form.Field is NOT supported by this editor.

An Editor is a sensitive component that can't be used in all spots standard fields can be used. Putting an Editor within any element that has display set to 'none' can cause problems in Safari and Firefox due to their default iframe reloading bugs.

Config Options

Config Options Defined By
  allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
  autoHeight : Boolean
True to use height:'auto', false to use fixed height (defaults to false).
BoxComponent
  autoWidth : Boolean
True to use width:'auto', false to use fixed width (defaults to false).
BoxComponent
  clearCls : String
The CSS class used to provide field clearing (defaults to 'x-form-clear-left')
Field
  createLinkText : String
The default text for the create link prompt
HtmlEditor
  defaultLinkValue : String
The default value for the create link prompt (defaults to http:/ /)
HtmlEditor
  disabled : Boolean
True to disable the field (defaults to false).
Field
  disabledClass : String
CSS class added to the component when it is disabled (defaults to "x-item-disabled").
Component
  enableAlignments : Boolean
Enable the left, center, right alignment buttons (defaults to true)
HtmlEditor
  enableColors : Boolean
Enable the fore/highlight color buttons (defaults to true)
HtmlEditor
  enableFont : Boolean
Enable font selection. Not available in Safari. (defaults to true)
HtmlEditor
  enableFontSize : Boolean
Enable the increase/decrease font size buttons (defaults to true)
HtmlEditor
  enableFormat : Boolean
Enable the bold, italic and underline buttons (defaults to true)
HtmlEditor
  enableLinks : Boolean
Enable the create link button. Not available in Safari. (defaults to true)
HtmlEditor
  enableLists : Boolean
Enable the bullet and numbered list buttons. Not available in Safari. (defaults to true)
HtmlEditor
  enableSourceEdit : Boolean
Enable the switch to source edit button. Not available in Safari. (defaults to true)
HtmlEditor
  fieldLabel : String
The label text to display next to this field (defaults to '')
Field
  fontFamilies : Array
An array of available font families
HtmlEditor
  height : Number
The height of this component in pixels (defaults to auto).
BoxComponent
  hideLabel : Boolean
True to completely hide the label element (defaults to false)
Field
  id : String
The unique id of this component (defaults to an auto-assigned id).
Component
  itemCls : String
An additional CSS class to apply to this field (defaults to the container's itemCls value if set, or '')
Field
  name : String
The field's HTML name attribute.
Field
  stateId : String
The unique id for this component to use for state management purposes (defaults to the component id).
Component
  validationDelay : Number
The length of time in milliseconds after user input begins until validation is initiated (defaults to 250)
Field
  validationEvent : String/Boolean
The event that should initiate field validation. Set to false to disable automatic validation (defaults to "keyup").
Field
  value : Mixed
A value to initialize this field with.
Field
  width : Number
The width of this component in pixels (defaults to auto).
BoxComponent

Public Properties

Property Defined By
  disabled : Boolean
True if this component is disabled. Read-only.
Component
  hidden : Boolean
True if this component is hidden. Read-only.
Component
  initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
  rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

Method Defined By

Public Events

Event Defined By