3 * Copyright(c) 2006-2010 Ext JS, Inc.
5 * http://www.extjs.com/license
8 * @class Ext.form.HtmlEditor
9 * @extends Ext.form.Field
10 * Provides a lightweight HTML Editor component. Some toolbar features are not supported by Safari and will be
11 * automatically hidden when needed. These are noted in the config options where appropriate.
12 * <br><br>The editor's toolbar buttons have tooltips defined in the {@link #buttonTips} property, but they are not
13 * enabled by default unless the global {@link Ext.QuickTips} singleton is {@link Ext.QuickTips#init initialized}.
14 * <br><br><b>Note: The focus/blur and validation marking functionality inherited from Ext.form.Field is NOT
15 * supported by this editor.</b>
16 * <br><br>An Editor is a sensitive component that can't be used in all spots standard fields can be used. Putting an Editor within
17 * any element that has display set to 'none' can cause problems in Safari and Firefox due to their default iframe reloading bugs.
18 * <br><br>Example usage:
20 // Simple example rendered with default options:
21 Ext.QuickTips.init(); // enable tooltips
22 new Ext.form.HtmlEditor({
23 renderTo: Ext.getBody(),
28 // Passed via xtype into a container and with custom options:
29 Ext.QuickTips.init(); // enable tooltips
32 renderTo: Ext.getBody(),
40 enableAlignments: false
45 * Create a new HtmlEditor
46 * @param {Object} config
50 Ext.form.HtmlEditor = Ext.extend(Ext.form.Field, {
52 * @cfg {Boolean} enableFormat Enable the bold, italic and underline buttons (defaults to true)
56 * @cfg {Boolean} enableFontSize Enable the increase/decrease font size buttons (defaults to true)
58 enableFontSize : true,
60 * @cfg {Boolean} enableColors Enable the fore/highlight color buttons (defaults to true)
64 * @cfg {Boolean} enableAlignments Enable the left, center, right alignment buttons (defaults to true)
66 enableAlignments : true,
68 * @cfg {Boolean} enableLists Enable the bullet and numbered list buttons. Not available in Safari. (defaults to true)
72 * @cfg {Boolean} enableSourceEdit Enable the switch to source edit button. Not available in Safari. (defaults to true)
74 enableSourceEdit : true,
76 * @cfg {Boolean} enableLinks Enable the create link button. Not available in Safari. (defaults to true)
80 * @cfg {Boolean} enableFont Enable font selection. Not available in Safari. (defaults to true)
84 * @cfg {String} createLinkText The default text for the create link prompt
86 createLinkText : 'Please enter the URL for the link:',
88 * @cfg {String} defaultLinkValue The default value for the create link prompt (defaults to http:/ /)
90 defaultLinkValue : 'http:/'+'/',
92 * @cfg {Array} fontFamilies An array of available font families
101 defaultFont: 'tahoma',
103 * @cfg {String} defaultValue A default value to be put into the editor to resolve focus issues (defaults to   (Non-breaking space) in Opera and IE6, ​ (Zero-width space) in all other browsers).
105 defaultValue: (Ext.isOpera || Ext.isIE6) ? ' ' : '​',
107 // private properties
109 validationEvent : false,
113 sourceEditMode : false,
114 onFocus : Ext.emptyFn,
117 defaultAutoCreate : {
119 style:"width:500px;height:300px;",
124 initComponent : function(){
128 * Fires when the editor is fully initialized (including the iframe)
129 * @param {HtmlEditor} this
134 * Fires when the editor is first receives the focus. Any insertion must wait
135 * until after this event.
136 * @param {HtmlEditor} this
141 * Fires before the textarea is updated with content from the editor iframe. Return false
142 * to cancel the sync.
143 * @param {HtmlEditor} this
144 * @param {String} html
149 * Fires before the iframe editor is updated with content from the textarea. Return false
150 * to cancel the push.
151 * @param {HtmlEditor} this
152 * @param {String} html
157 * Fires when the textarea is updated with content from the editor iframe.
158 * @param {HtmlEditor} this
159 * @param {String} html
164 * Fires when the iframe editor is updated with content from the textarea.
165 * @param {HtmlEditor} this
166 * @param {String} html
170 * @event editmodechange
171 * Fires when the editor switches edit modes
172 * @param {HtmlEditor} this
173 * @param {Boolean} sourceEdit True if source edit, false if standard editing.
180 createFontOptions : function(){
181 var buf = [], fs = this.fontFamilies, ff, lc;
182 for(var i = 0, len = fs.length; i< len; i++){
184 lc = ff.toLowerCase();
186 '<option value="',lc,'" style="font-family:',ff,';"',
187 (this.defaultFont == lc ? ' selected="true">' : '>'),
196 * Protected method that will not generally be called directly. It
197 * is called when the editor creates its toolbar. Override this method if you need to
198 * add custom toolbar buttons.
199 * @param {HtmlEditor} editor
201 createToolbar : function(editor){
203 var tipsEnabled = Ext.QuickTips && Ext.QuickTips.isEnabled();
206 function btn(id, toggle, handler){
210 iconCls: 'x-edit-'+id,
211 enableToggle:toggle !== false,
213 handler:handler||editor.relayBtnCmd,
214 clickEvent:'mousedown',
215 tooltip: tipsEnabled ? editor.buttonTips[id] || undefined : undefined,
216 overflowText: editor.buttonTips[id].title || undefined,
222 if(this.enableFont && !Ext.isSafari2){
223 var fontSelectItem = new Ext.Toolbar.Item({
227 html: this.createFontOptions()
237 if(this.enableFormat){
245 if(this.enableFontSize){
248 btn('increasefontsize', false, this.adjustFont),
249 btn('decreasefontsize', false, this.adjustFont)
253 if(this.enableColors){
258 iconCls: 'x-edit-forecolor',
259 clickEvent:'mousedown',
260 tooltip: tipsEnabled ? editor.buttonTips.forecolor || undefined : undefined,
262 menu : new Ext.menu.ColorMenu({
269 select: function(cp, color){
270 this.execCmd('forecolor', Ext.isWebKit || Ext.isIE ? '#'+color : color);
274 clickEvent:'mousedown'
279 iconCls: 'x-edit-backcolor',
280 clickEvent:'mousedown',
281 tooltip: tipsEnabled ? editor.buttonTips.backcolor || undefined : undefined,
283 menu : new Ext.menu.ColorMenu({
290 select: function(cp, color){
292 this.execCmd('useCSS', false);
293 this.execCmd('hilitecolor', color);
294 this.execCmd('useCSS', true);
297 this.execCmd(Ext.isOpera ? 'hilitecolor' : 'backcolor', Ext.isWebKit || Ext.isIE ? '#'+color : color);
302 clickEvent:'mousedown'
308 if(this.enableAlignments){
312 btn('justifycenter'),
318 if(this.enableLinks){
321 btn('createlink', false, this.createLink)
325 if(this.enableLists){
328 btn('insertorderedlist'),
329 btn('insertunorderedlist')
332 if(this.enableSourceEdit){
335 btn('sourceedit', true, function(btn){
336 this.toggleSourceEdit(!this.sourceEditMode);
343 var tb = new Ext.Toolbar({
344 renderTo: this.wrap.dom.firstChild,
348 if (fontSelectItem) {
349 this.fontSelect = fontSelectItem.el;
351 this.mon(this.fontSelect, 'change', function(){
352 var font = this.fontSelect.dom.value;
353 this.relayCmd('fontname', font);
359 this.mon(tb.el, 'click', function(e){
367 onDisable: function(){
369 Ext.form.HtmlEditor.superclass.onDisable.call(this);
372 onEnable: function(){
374 Ext.form.HtmlEditor.superclass.onEnable.call(this);
377 setReadOnly: function(readOnly){
379 Ext.form.HtmlEditor.superclass.setReadOnly.call(this, readOnly);
380 if(this.initialized){
381 this.setDesignMode(!readOnly);
382 var bd = this.getEditorBody();
384 bd.style.cursor = this.readOnly ? 'default' : 'text';
386 this.disableItems(readOnly);
391 * Protected method that will not generally be called directly. It
392 * is called when the editor initializes the iframe with HTML contents. Override this method if you
393 * want to change the initialization markup of the iframe (e.g. to add stylesheets).
395 * Note: IE8-Standards has unwanted scroller behavior, so the default meta tag forces IE7 compatibility
397 getDocMarkup : function(){
398 var h = Ext.fly(this.iframe).getHeight() - this.iframePad * 2;
399 return String.format('<html><head><style type="text/css">body{border: 0; margin: 0; padding: {0}px; height: {1}px; cursor: text}</style></head><body></body></html>', this.iframePad, h);
403 getEditorBody : function(){
404 var doc = this.getDoc();
405 return doc.body || doc.documentElement;
410 return Ext.isIE ? this.getWin().document : (this.iframe.contentDocument || this.getWin().document);
415 return Ext.isIE ? this.iframe.contentWindow : window.frames[this.iframe.name];
419 onRender : function(ct, position){
420 Ext.form.HtmlEditor.superclass.onRender.call(this, ct, position);
421 this.el.dom.style.border = '0 none';
422 this.el.dom.setAttribute('tabIndex', -1);
423 this.el.addClass('x-hidden');
424 if(Ext.isIE){ // fix IE 1px bogus margin
425 this.el.applyStyles('margin-top:-1px;margin-bottom:-1px;');
427 this.wrap = this.el.wrap({
428 cls:'x-html-editor-wrap', cn:{cls:'x-html-editor-tb'}
431 this.createToolbar(this);
433 this.disableItems(true);
440 var sz = this.el.getSize();
441 this.setSize(sz.width, this.height || sz.height);
443 this.resizeEl = this.positionEl = this.wrap;
446 createIFrame: function(){
447 var iframe = document.createElement('iframe');
448 iframe.name = Ext.id();
449 iframe.frameBorder = '0';
450 iframe.style.overflow = 'auto';
452 this.wrap.dom.appendChild(iframe);
453 this.iframe = iframe;
455 this.monitorTask = Ext.TaskMgr.start({
456 run: this.checkDesignMode,
462 initFrame : function(){
463 Ext.TaskMgr.stop(this.monitorTask);
464 var doc = this.getDoc();
465 this.win = this.getWin();
468 doc.write(this.getDocMarkup());
471 var task = { // must defer to wait for browser to be ready
473 var doc = this.getDoc();
474 if(doc.body || doc.readyState == 'complete'){
475 Ext.TaskMgr.stop(task);
476 this.setDesignMode(true);
477 this.initEditor.defer(10, this);
484 Ext.TaskMgr.start(task);
488 checkDesignMode : function(){
489 if(this.wrap && this.wrap.dom.offsetWidth){
490 var doc = this.getDoc();
494 if(!doc.editorInitialized || this.getDesignMode() != 'on'){
501 * set current design mode. To enable, mode can be true or 'on', off otherwise
503 setDesignMode : function(mode){
505 if(doc = this.getDoc()){
509 doc.designMode = (/on|true/i).test(String(mode).toLowerCase()) ?'on':'off';
515 getDesignMode : function(){
516 var doc = this.getDoc();
517 if(!doc){ return ''; }
518 return String(doc.designMode).toLowerCase();
522 disableItems: function(disabled){
524 this.fontSelect.dom.disabled = disabled;
526 this.tb.items.each(function(item){
527 if(item.getItemId() != 'sourceedit'){
528 item.setDisabled(disabled);
534 onResize : function(w, h){
535 Ext.form.HtmlEditor.superclass.onResize.apply(this, arguments);
536 if(this.el && this.iframe){
538 var aw = w - this.wrap.getFrameWidth('lr');
539 this.el.setWidth(aw);
540 this.tb.setWidth(aw);
541 this.iframe.style.width = Math.max(aw, 0) + 'px';
544 var ah = h - this.wrap.getFrameWidth('tb') - this.tb.el.getHeight();
545 this.el.setHeight(ah);
546 this.iframe.style.height = Math.max(ah, 0) + 'px';
547 var bd = this.getEditorBody();
549 bd.style.height = Math.max((ah - (this.iframePad*2)), 0) + 'px';
556 * Toggles the editor between standard and source edit mode.
557 * @param {Boolean} sourceEdit (optional) True for source edit, false for standard
559 toggleSourceEdit : function(sourceEditMode){
560 var iframeHeight, elHeight;
561 if(sourceEditMode === undefined){
562 sourceEditMode = !this.sourceEditMode;
564 this.sourceEditMode = sourceEditMode === true;
565 var btn = this.tb.getComponent('sourceedit');
567 if(btn.pressed !== this.sourceEditMode){
568 btn.toggle(this.sourceEditMode);
573 if(this.sourceEditMode){
574 // grab the height of the containing panel before we hide the iframe
577 iframeHeight = Ext.get(this.iframe).getHeight();
579 this.disableItems(true);
581 this.iframe.className = 'x-hidden';
582 this.el.removeClass('x-hidden');
583 this.el.dom.removeAttribute('tabIndex');
585 this.el.dom.style.height = iframeHeight + 'px';
587 elHeight = parseInt(this.el.dom.style.height, 10);
588 if(this.initialized){
589 this.disableItems(this.readOnly);
592 this.iframe.className = '';
593 this.el.addClass('x-hidden');
594 this.el.dom.setAttribute('tabIndex', -1);
598 this.iframe.style.height = elHeight + 'px';
600 this.fireEvent('editmodechange', this, this.sourceEditMode);
603 // private used internally
604 createLink : function(){
605 var url = prompt(this.createLinkText, this.defaultLinkValue);
606 if(url && url != 'http:/'+'/'){
607 this.relayCmd('createlink', url);
612 initEvents : function(){
613 this.originalValue = this.getValue();
617 * Overridden and disabled. The editor element does not support standard valid/invalid marking. @hide
620 markInvalid : Ext.emptyFn,
623 * Overridden and disabled. The editor element does not support standard valid/invalid marking. @hide
626 clearInvalid : Ext.emptyFn,
628 // docs inherit from Field
629 setValue : function(v){
630 Ext.form.HtmlEditor.superclass.setValue.call(this, v);
636 * Protected method that will not generally be called directly. If you need/want
637 * custom HTML cleanup, this is the method you should override.
638 * @param {String} html The HTML to be cleaned
639 * @return {String} The cleaned HTML
641 cleanHtml: function(html) {
643 if(Ext.isWebKit){ // strip safari nonsense
644 html = html.replace(/\sclass="(?:Apple-style-span|khtml-block-placeholder)"/gi, '');
648 * Neat little hack. Strips out all the non-digit characters from the default
649 * value and compares it to the character code of the first character in the string
650 * because it can cause encoding issues when posted to the server.
652 if(html.charCodeAt(0) == this.defaultValue.replace(/\D/g, '')){
653 html = html.substring(1);
659 * Protected method that will not generally be called directly. Syncs the contents
660 * of the editor iframe with the textarea.
662 syncValue : function(){
663 if(this.initialized){
664 var bd = this.getEditorBody();
665 var html = bd.innerHTML;
667 var bs = bd.getAttribute('style'); // Safari puts text-align styles on the body element!
668 var m = bs.match(/text-align:(.*?);/i);
670 html = '<div style="'+m[0]+'">' + html + '</div>';
673 html = this.cleanHtml(html);
674 if(this.fireEvent('beforesync', this, html) !== false){
675 this.el.dom.value = html;
676 this.fireEvent('sync', this, html);
681 //docs inherit from Field
682 getValue : function() {
683 this[this.sourceEditMode ? 'pushValue' : 'syncValue']();
684 return Ext.form.HtmlEditor.superclass.getValue.call(this);
688 * Protected method that will not generally be called directly. Pushes the value of the textarea
689 * into the iframe editor.
691 pushValue : function(){
692 if(this.initialized){
693 var v = this.el.dom.value;
694 if(!this.activated && v.length < 1){
695 v = this.defaultValue;
697 if(this.fireEvent('beforepush', this, v) !== false){
698 this.getEditorBody().innerHTML = v;
700 // Gecko hack, see: https://bugzilla.mozilla.org/show_bug.cgi?id=232791#c8
701 this.setDesignMode(false); //toggle off first
704 this.setDesignMode(true);
705 this.fireEvent('push', this, v);
712 deferFocus : function(){
713 this.focus.defer(10, this);
716 // docs inherit from Field
718 if(this.win && !this.sourceEditMode){
726 initEditor : function(){
727 //Destroying the component during/before initEditor can cause issues.
729 var dbody = this.getEditorBody(),
730 ss = this.el.getStyles('font-size', 'font-family', 'background-image', 'background-repeat', 'background-color', 'color'),
734 ss['background-attachment'] = 'fixed'; // w3c
735 dbody.bgProperties = 'fixed'; // ie
737 Ext.DomHelper.applyStyles(dbody, ss);
743 Ext.EventManager.removeAll(doc);
748 * We need to use createDelegate here, because when using buffer, the delayed task is added
749 * as a property to the function. When the listener is removed, the task is deleted from the function.
750 * Since onEditorEvent is shared on the prototype, if we have multiple html editors, the first time one of the editors
751 * is destroyed, it causes the fn to be deleted from the prototype, which causes errors. Essentially, we're just anonymizing the function.
753 fn = this.onEditorEvent.createDelegate(this);
754 Ext.EventManager.on(doc, {
763 Ext.EventManager.on(doc, 'keypress', this.applyCommand, this);
765 if(Ext.isIE || Ext.isWebKit || Ext.isOpera){
766 Ext.EventManager.on(doc, 'keydown', this.fixKeys, this);
768 doc.editorInitialized = true;
769 this.initialized = true;
771 this.setReadOnly(this.readOnly);
772 this.fireEvent('initialize', this);
777 onDestroy : function(){
778 if(this.monitorTask){
779 Ext.TaskMgr.stop(this.monitorTask);
782 Ext.destroy(this.tb);
783 var doc = this.getDoc();
786 Ext.EventManager.removeAll(doc);
787 for (var prop in doc){
793 this.wrap.dom.innerHTML = '';
799 this.el.removeAllListeners();
802 this.purgeListeners();
806 onFirstFocus : function(){
807 this.activated = true;
808 this.disableItems(this.readOnly);
809 if(Ext.isGecko){ // prevent silly gecko errors
811 var s = this.win.getSelection();
812 if(!s.focusNode || s.focusNode.nodeType != 3){
813 var r = s.getRangeAt(0);
814 r.selectNodeContents(this.getEditorBody());
819 this.execCmd('useCSS', true);
820 this.execCmd('styleWithCSS', false);
823 this.fireEvent('activate', this);
827 adjustFont: function(btn){
828 var adjust = btn.getItemId() == 'increasefontsize' ? 1 : -1,
830 v = parseInt(doc.queryCommandValue('FontSize') || 2, 10);
831 if((Ext.isSafari && !Ext.isSafari2) || Ext.isChrome || Ext.isAir){
833 // 1 = 10px, 2 = 13px, 3 = 16px, 4 = 18px, 5 = 24px, 6 = 32px
847 v = v.constrain(1, 6);
849 if(Ext.isSafari){ // safari
852 v = Math.max(1, v+adjust) + (Ext.isSafari ? 'px' : 0);
854 this.execCmd('FontSize', v);
858 onEditorEvent : function(e){
859 this.updateToolbar();
864 * Protected method that will not generally be called directly. It triggers
865 * a toolbar update by reading the markup state of the current selection in the editor.
867 updateToolbar: function(){
878 var btns = this.tb.items.map,
881 if(this.enableFont && !Ext.isSafari2){
882 var name = (doc.queryCommandValue('FontName')||this.defaultFont).toLowerCase();
883 if(name != this.fontSelect.dom.value){
884 this.fontSelect.dom.value = name;
887 if(this.enableFormat){
888 btns.bold.toggle(doc.queryCommandState('bold'));
889 btns.italic.toggle(doc.queryCommandState('italic'));
890 btns.underline.toggle(doc.queryCommandState('underline'));
892 if(this.enableAlignments){
893 btns.justifyleft.toggle(doc.queryCommandState('justifyleft'));
894 btns.justifycenter.toggle(doc.queryCommandState('justifycenter'));
895 btns.justifyright.toggle(doc.queryCommandState('justifyright'));
897 if(!Ext.isSafari2 && this.enableLists){
898 btns.insertorderedlist.toggle(doc.queryCommandState('insertorderedlist'));
899 btns.insertunorderedlist.toggle(doc.queryCommandState('insertunorderedlist'));
902 Ext.menu.MenuMgr.hideAll();
908 relayBtnCmd : function(btn){
909 this.relayCmd(btn.getItemId());
913 * Executes a Midas editor command on the editor document and performs necessary focus and
914 * toolbar updates. <b>This should only be called after the editor is initialized.</b>
915 * @param {String} cmd The Midas command
916 * @param {String/Boolean} value (optional) The value to pass to the command (defaults to null)
918 relayCmd : function(cmd, value){
921 this.execCmd(cmd, value);
922 this.updateToolbar();
927 * Executes a Midas editor command directly on the editor document.
928 * For visual commands, you should use {@link #relayCmd} instead.
929 * <b>This should only be called after the editor is initialized.</b>
930 * @param {String} cmd The Midas command
931 * @param {String/Boolean} value (optional) The value to pass to the command (defaults to null)
933 execCmd : function(cmd, value){
934 var doc = this.getDoc();
935 doc.execCommand(cmd, false, value === undefined ? null : value);
940 applyCommand : function(e){
942 var c = e.getCharCode(), cmd;
944 c = String.fromCharCode(c);
967 * Inserts the passed text at the current cursor position. Note: the editor must be initialized and activated
969 * @param {String} text
971 insertAtCursor : function(text){
977 var doc = this.getDoc(),
978 r = doc.selection.createRange();
986 this.execCmd('InsertHTML', text);
992 fixKeys : function(){ // load time branching for fastest keydown performance
1000 r = doc.selection.createRange();
1003 r.pasteHTML(' ');
1006 }else if(k == e.ENTER){
1007 r = doc.selection.createRange();
1009 var target = r.parentElement();
1010 if(!target || target.tagName.toLowerCase() != 'li'){
1012 r.pasteHTML('<br />');
1019 }else if(Ext.isOpera){
1025 this.execCmd('InsertHTML',' ');
1029 }else if(Ext.isWebKit){
1034 this.execCmd('InsertText','\t');
1036 }else if(k == e.ENTER){
1038 this.execCmd('InsertHtml','<br /><br />');
1046 * Returns the editor's toolbar. <b>This is only available after the editor has been rendered.</b>
1047 * @return {Ext.Toolbar}
1049 getToolbar : function(){
1054 * Object collection of toolbar tooltips for the buttons in the editor. The key
1055 * is the command id associated with that button and the value is a valid QuickTips object.
1060 title: 'Bold (Ctrl+B)',
1061 text: 'Make the selected text bold.',
1062 cls: 'x-html-editor-tip'
1065 title: 'Italic (Ctrl+I)',
1066 text: 'Make the selected text italic.',
1067 cls: 'x-html-editor-tip'
1075 title: 'Bold (Ctrl+B)',
1076 text: 'Make the selected text bold.',
1077 cls: 'x-html-editor-tip'
1080 title: 'Italic (Ctrl+I)',
1081 text: 'Make the selected text italic.',
1082 cls: 'x-html-editor-tip'
1085 title: 'Underline (Ctrl+U)',
1086 text: 'Underline the selected text.',
1087 cls: 'x-html-editor-tip'
1089 increasefontsize : {
1091 text: 'Increase the font size.',
1092 cls: 'x-html-editor-tip'
1094 decreasefontsize : {
1095 title: 'Shrink Text',
1096 text: 'Decrease the font size.',
1097 cls: 'x-html-editor-tip'
1100 title: 'Text Highlight Color',
1101 text: 'Change the background color of the selected text.',
1102 cls: 'x-html-editor-tip'
1105 title: 'Font Color',
1106 text: 'Change the color of the selected text.',
1107 cls: 'x-html-editor-tip'
1110 title: 'Align Text Left',
1111 text: 'Align text to the left.',
1112 cls: 'x-html-editor-tip'
1115 title: 'Center Text',
1116 text: 'Center text in the editor.',
1117 cls: 'x-html-editor-tip'
1120 title: 'Align Text Right',
1121 text: 'Align text to the right.',
1122 cls: 'x-html-editor-tip'
1124 insertunorderedlist : {
1125 title: 'Bullet List',
1126 text: 'Start a bulleted list.',
1127 cls: 'x-html-editor-tip'
1129 insertorderedlist : {
1130 title: 'Numbered List',
1131 text: 'Start a numbered list.',
1132 cls: 'x-html-editor-tip'
1136 text: 'Make the selected text a hyperlink.',
1137 cls: 'x-html-editor-tip'
1140 title: 'Source Edit',
1141 text: 'Switch to source editing mode.',
1142 cls: 'x-html-editor-tip'
1146 // hide stuff that is not compatible
1164 * @cfg {String} fieldClass @hide
1167 * @cfg {String} focusClass @hide
1170 * @cfg {String} autoCreate @hide
1173 * @cfg {String} inputType @hide
1176 * @cfg {String} invalidClass @hide
1179 * @cfg {String} invalidText @hide
1182 * @cfg {String} msgFx @hide
1185 * @cfg {String} validateOnBlur @hide
1188 * @cfg {Boolean} allowDomMove @hide
1191 * @cfg {String} applyTo @hide
1194 * @cfg {String} autoHeight @hide
1197 * @cfg {String} autoWidth @hide
1200 * @cfg {String} cls @hide
1203 * @cfg {String} disabled @hide
1206 * @cfg {String} disabledClass @hide
1209 * @cfg {String} msgTarget @hide
1212 * @cfg {String} readOnly @hide
1215 * @cfg {String} style @hide
1218 * @cfg {String} validationDelay @hide
1221 * @cfg {String} validationEvent @hide
1224 * @cfg {String} tabIndex @hide
1227 * @property disabled
1231 * @method applyToMarkup
1251 * @method setDisabled
1259 Ext.reg('htmleditor', Ext.form.HtmlEditor);