3 * Copyright(c) 2006-2010 Ext JS, LLC
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();
\r
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){
\r
223 var fontSelectItem = new Ext.Toolbar.Item({
\r
226 cls:'x-font-select',
\r
227 html: this.createFontOptions()
\r
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);
342 // build the toolbar
\r
343 var tb = new Ext.Toolbar({
\r
344 renderTo: this.wrap.dom.firstChild,
\r
348 if (fontSelectItem) {
\r
349 this.fontSelect = fontSelectItem.el;
\r
351 this.mon(this.fontSelect, 'change', function(){
\r
352 var font = this.fontSelect.dom.value;
\r
353 this.relayCmd('fontname', font);
\r
359 // stop form submits
\r
360 this.mon(tb.el, 'click', function(e){
\r
361 e.preventDefault();
\r
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){
\r
381 this.setDesignMode(!readOnly);
\r
382 var bd = this.getEditorBody();
\r
384 bd.style.cursor = this.readOnly ? 'default' : 'text';
\r
386 this.disableItems(readOnly);
\r
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
\r
397 getDocMarkup : function(){
398 return '<html><head><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><style type="text/css">body{border:0;margin:0;padding:3px;height:98%;cursor:text;}</style></head><body></body></html>';
402 getEditorBody : function(){
403 var doc = this.getDoc();
404 return doc.body || doc.documentElement;
409 return Ext.isIE ? this.getWin().document : (this.iframe.contentDocument || this.getWin().document);
414 return Ext.isIE ? this.iframe.contentWindow : window.frames[this.iframe.name];
418 onRender : function(ct, position){
419 Ext.form.HtmlEditor.superclass.onRender.call(this, ct, position);
420 this.el.dom.style.border = '0 none';
421 this.el.dom.setAttribute('tabIndex', -1);
422 this.el.addClass('x-hidden');
423 if(Ext.isIE){ // fix IE 1px bogus margin
424 this.el.applyStyles('margin-top:-1px;margin-bottom:-1px;')
426 this.wrap = this.el.wrap({
427 cls:'x-html-editor-wrap', cn:{cls:'x-html-editor-tb'}
430 this.createToolbar(this);
432 this.disableItems(true);
439 var sz = this.el.getSize();
440 this.setSize(sz.width, this.height || sz.height);
442 this.resizeEl = this.positionEl = this.wrap;
445 createIFrame: function(){
446 var iframe = document.createElement('iframe');
447 iframe.name = Ext.id();
448 iframe.frameBorder = '0';
449 iframe.style.overflow = 'auto';
\r
451 this.wrap.dom.appendChild(iframe);
452 this.iframe = iframe;
454 this.monitorTask = Ext.TaskMgr.start({
455 run: this.checkDesignMode,
461 initFrame : function(){
462 Ext.TaskMgr.stop(this.monitorTask);
463 var doc = this.getDoc();
464 this.win = this.getWin();
467 doc.write(this.getDocMarkup());
470 var task = { // must defer to wait for browser to be ready
472 var doc = this.getDoc();
473 if(doc.body || doc.readyState == 'complete'){
474 Ext.TaskMgr.stop(task);
475 this.setDesignMode(true);
476 this.initEditor.defer(10, this);
483 Ext.TaskMgr.start(task);
487 checkDesignMode : function(){
488 if(this.wrap && this.wrap.dom.offsetWidth){
489 var doc = this.getDoc();
493 if(!doc.editorInitialized || this.getDesignMode() != 'on'){
500 * set current design mode. To enable, mode can be true or 'on', off otherwise
\r
502 setDesignMode : function(mode){
\r
504 if(doc = this.getDoc()){
\r
508 doc.designMode = (/on|true/i).test(String(mode).toLowerCase()) ?'on':'off';
\r
514 getDesignMode : function(){
515 var doc = this.getDoc();
\r
516 if(!doc){ return ''; }
\r
517 return String(doc.designMode).toLowerCase();
\r
521 disableItems: function(disabled){
523 this.fontSelect.dom.disabled = disabled;
525 this.tb.items.each(function(item){
526 if(item.getItemId() != 'sourceedit'){
527 item.setDisabled(disabled);
533 onResize : function(w, h){
534 Ext.form.HtmlEditor.superclass.onResize.apply(this, arguments);
535 if(this.el && this.iframe){
537 var aw = w - this.wrap.getFrameWidth('lr');
538 this.el.setWidth(aw);
539 this.tb.setWidth(aw);
540 this.iframe.style.width = Math.max(aw, 0) + 'px';
543 var ah = h - this.wrap.getFrameWidth('tb') - this.tb.el.getHeight();
544 this.el.setHeight(ah);
545 this.iframe.style.height = Math.max(ah, 0) + 'px';
546 var bd = this.getEditorBody();
548 bd.style.height = Math.max((ah - (this.iframePad*2)), 0) + 'px';
555 * Toggles the editor between standard and source edit mode.
556 * @param {Boolean} sourceEdit (optional) True for source edit, false for standard
558 toggleSourceEdit : function(sourceEditMode){
559 if(sourceEditMode === undefined){
560 sourceEditMode = !this.sourceEditMode;
562 this.sourceEditMode = sourceEditMode === true;
563 var btn = this.tb.getComponent('sourceedit');
565 if(btn.pressed !== this.sourceEditMode){
566 btn.toggle(this.sourceEditMode);
571 if(this.sourceEditMode){
572 this.disableItems(true);
574 this.iframe.className = 'x-hidden';
575 this.el.removeClass('x-hidden');
576 this.el.dom.removeAttribute('tabIndex');
579 if(this.initialized){
580 this.disableItems(this.readOnly);
583 this.iframe.className = '';
584 this.el.addClass('x-hidden');
585 this.el.dom.setAttribute('tabIndex', -1);
588 var lastSize = this.lastSize;
590 delete this.lastSize;
591 this.setSize(lastSize);
593 this.fireEvent('editmodechange', this, this.sourceEditMode);
596 // private used internally
597 createLink : function(){
598 var url = prompt(this.createLinkText, this.defaultLinkValue);
599 if(url && url != 'http:/'+'/'){
600 this.relayCmd('createlink', url);
605 initEvents : function(){
606 this.originalValue = this.getValue();
610 * Overridden and disabled. The editor element does not support standard valid/invalid marking. @hide
613 markInvalid : Ext.emptyFn,
616 * Overridden and disabled. The editor element does not support standard valid/invalid marking. @hide
619 clearInvalid : Ext.emptyFn,
621 // docs inherit from Field
622 setValue : function(v){
623 Ext.form.HtmlEditor.superclass.setValue.call(this, v);
629 * Protected method that will not generally be called directly. If you need/want
630 * custom HTML cleanup, this is the method you should override.
631 * @param {String} html The HTML to be cleaned
632 * @return {String} The cleaned HTML
634 cleanHtml: function(html) {
636 if(Ext.isWebKit){ // strip safari nonsense
637 html = html.replace(/\sclass="(?:Apple-style-span|khtml-block-placeholder)"/gi, '');
641 * Neat little hack. Strips out all the non-digit characters from the default
642 * value and compares it to the character code of the first character in the string
643 * because it can cause encoding issues when posted to the server.
645 if(html.charCodeAt(0) == this.defaultValue.replace(/\D/g, '')){
646 html = html.substring(1);
652 * Protected method that will not generally be called directly. Syncs the contents
653 * of the editor iframe with the textarea.
655 syncValue : function(){
656 if(this.initialized){
657 var bd = this.getEditorBody();
658 var html = bd.innerHTML;
660 var bs = bd.getAttribute('style'); // Safari puts text-align styles on the body element!
661 var m = bs.match(/text-align:(.*?);/i);
663 html = '<div style="'+m[0]+'">' + html + '</div>';
666 html = this.cleanHtml(html);
667 if(this.fireEvent('beforesync', this, html) !== false){
668 this.el.dom.value = html;
669 this.fireEvent('sync', this, html);
674 //docs inherit from Field
675 getValue : function() {
676 this[this.sourceEditMode ? 'pushValue' : 'syncValue']();
677 return Ext.form.HtmlEditor.superclass.getValue.call(this);
681 * Protected method that will not generally be called directly. Pushes the value of the textarea
682 * into the iframe editor.
684 pushValue : function(){
685 if(this.initialized){
686 var v = this.el.dom.value;
687 if(!this.activated && v.length < 1){
688 v = this.defaultValue;
690 if(this.fireEvent('beforepush', this, v) !== false){
691 this.getEditorBody().innerHTML = v;
693 // Gecko hack, see: https://bugzilla.mozilla.org/show_bug.cgi?id=232791#c8
694 this.setDesignMode(false); //toggle off first
\r
697 this.setDesignMode(true);
\r
698 this.fireEvent('push', this, v);
705 deferFocus : function(){
706 this.focus.defer(10, this);
709 // docs inherit from Field
711 if(this.win && !this.sourceEditMode){
719 initEditor : function(){
720 //Destroying the component during/before initEditor can cause issues.
722 var dbody = this.getEditorBody(),
723 ss = this.el.getStyles('font-size', 'font-family', 'background-image', 'background-repeat'),
727 ss['background-attachment'] = 'fixed'; // w3c
728 dbody.bgProperties = 'fixed'; // ie
730 Ext.DomHelper.applyStyles(dbody, ss);
736 Ext.EventManager.removeAll(doc);
741 * We need to use createDelegate here, because when using buffer, the delayed task is added
742 * as a property to the function. When the listener is removed, the task is deleted from the function.
743 * Since onEditorEvent is shared on the prototype, if we have multiple html editors, the first time one of the editors
744 * is destroyed, it causes the fn to be deleted from the prototype, which causes errors. Essentially, we're just anonymizing the function.
746 fn = this.onEditorEvent.createDelegate(this);
747 Ext.EventManager.on(doc, {
756 Ext.EventManager.on(doc, 'keypress', this.applyCommand, this);
758 if(Ext.isIE || Ext.isWebKit || Ext.isOpera){
759 Ext.EventManager.on(doc, 'keydown', this.fixKeys, this);
761 doc.editorInitialized = true;
762 this.initialized = true;
764 this.setReadOnly(this.readOnly);
765 this.fireEvent('initialize', this);
770 onDestroy : function(){
771 if(this.monitorTask){
772 Ext.TaskMgr.stop(this.monitorTask);
775 Ext.destroy(this.tb);
776 var doc = this.getDoc();
779 Ext.EventManager.removeAll(doc);
780 for (var prop in doc){
786 this.wrap.dom.innerHTML = '';
792 this.el.removeAllListeners();
795 this.purgeListeners();
799 onFirstFocus : function(){
800 this.activated = true;
801 this.disableItems(this.readOnly);
802 if(Ext.isGecko){ // prevent silly gecko errors
804 var s = this.win.getSelection();
805 if(!s.focusNode || s.focusNode.nodeType != 3){
806 var r = s.getRangeAt(0);
807 r.selectNodeContents(this.getEditorBody());
812 this.execCmd('useCSS', true);
813 this.execCmd('styleWithCSS', false);
816 this.fireEvent('activate', this);
820 adjustFont: function(btn){
821 var adjust = btn.getItemId() == 'increasefontsize' ? 1 : -1,
823 v = parseInt(doc.queryCommandValue('FontSize') || 2, 10);
824 if((Ext.isSafari && !Ext.isSafari2) || Ext.isChrome || Ext.isAir){
826 // 1 = 10px, 2 = 13px, 3 = 16px, 4 = 18px, 5 = 24px, 6 = 32px
840 v = v.constrain(1, 6);
842 if(Ext.isSafari){ // safari
845 v = Math.max(1, v+adjust) + (Ext.isSafari ? 'px' : 0);
847 this.execCmd('FontSize', v);
851 onEditorEvent : function(e){
852 this.updateToolbar();
857 * Protected method that will not generally be called directly. It triggers
858 * a toolbar update by reading the markup state of the current selection in the editor.
860 updateToolbar: function(){
871 var btns = this.tb.items.map,
874 if(this.enableFont && !Ext.isSafari2){
875 var name = (doc.queryCommandValue('FontName')||this.defaultFont).toLowerCase();
876 if(name != this.fontSelect.dom.value){
877 this.fontSelect.dom.value = name;
880 if(this.enableFormat){
881 btns.bold.toggle(doc.queryCommandState('bold'));
882 btns.italic.toggle(doc.queryCommandState('italic'));
883 btns.underline.toggle(doc.queryCommandState('underline'));
885 if(this.enableAlignments){
886 btns.justifyleft.toggle(doc.queryCommandState('justifyleft'));
887 btns.justifycenter.toggle(doc.queryCommandState('justifycenter'));
888 btns.justifyright.toggle(doc.queryCommandState('justifyright'));
890 if(!Ext.isSafari2 && this.enableLists){
891 btns.insertorderedlist.toggle(doc.queryCommandState('insertorderedlist'));
892 btns.insertunorderedlist.toggle(doc.queryCommandState('insertunorderedlist'));
895 Ext.menu.MenuMgr.hideAll();
901 relayBtnCmd : function(btn){
902 this.relayCmd(btn.getItemId());
906 * Executes a Midas editor command on the editor document and performs necessary focus and
907 * toolbar updates. <b>This should only be called after the editor is initialized.</b>
908 * @param {String} cmd The Midas command
909 * @param {String/Boolean} value (optional) The value to pass to the command (defaults to null)
911 relayCmd : function(cmd, value){
914 this.execCmd(cmd, value);
915 this.updateToolbar();
920 * Executes a Midas editor command directly on the editor document.
921 * For visual commands, you should use {@link #relayCmd} instead.
922 * <b>This should only be called after the editor is initialized.</b>
923 * @param {String} cmd The Midas command
924 * @param {String/Boolean} value (optional) The value to pass to the command (defaults to null)
926 execCmd : function(cmd, value){
927 var doc = this.getDoc();
928 doc.execCommand(cmd, false, value === undefined ? null : value);
933 applyCommand : function(e){
935 var c = e.getCharCode(), cmd;
937 c = String.fromCharCode(c);
960 * Inserts the passed text at the current cursor position. Note: the editor must be initialized and activated
962 * @param {String} text
964 insertAtCursor : function(text){
970 var doc = this.getDoc(),
971 r = doc.selection.createRange();
979 this.execCmd('InsertHTML', text);
985 fixKeys : function(){ // load time branching for fastest keydown performance
993 r = doc.selection.createRange();
996 r.pasteHTML(' ');
999 }else if(k == e.ENTER){
1000 r = doc.selection.createRange();
1002 var target = r.parentElement();
1003 if(!target || target.tagName.toLowerCase() != 'li'){
1005 r.pasteHTML('<br />');
1012 }else if(Ext.isOpera){
1018 this.execCmd('InsertHTML',' ');
1022 }else if(Ext.isWebKit){
1027 this.execCmd('InsertText','\t');
1029 }else if(k == e.ENTER){
1031 this.execCmd('InsertHtml','<br /><br />');
1039 * Returns the editor's toolbar. <b>This is only available after the editor has been rendered.</b>
1040 * @return {Ext.Toolbar}
1042 getToolbar : function(){
1047 * Object collection of toolbar tooltips for the buttons in the editor. The key
1048 * is the command id associated with that button and the value is a valid QuickTips object.
1053 title: 'Bold (Ctrl+B)',
1054 text: 'Make the selected text bold.',
1055 cls: 'x-html-editor-tip'
1058 title: 'Italic (Ctrl+I)',
1059 text: 'Make the selected text italic.',
1060 cls: 'x-html-editor-tip'
1068 title: 'Bold (Ctrl+B)',
1069 text: 'Make the selected text bold.',
1070 cls: 'x-html-editor-tip'
1073 title: 'Italic (Ctrl+I)',
1074 text: 'Make the selected text italic.',
1075 cls: 'x-html-editor-tip'
1078 title: 'Underline (Ctrl+U)',
1079 text: 'Underline the selected text.',
1080 cls: 'x-html-editor-tip'
1082 increasefontsize : {
1084 text: 'Increase the font size.',
1085 cls: 'x-html-editor-tip'
1087 decreasefontsize : {
1088 title: 'Shrink Text',
1089 text: 'Decrease the font size.',
1090 cls: 'x-html-editor-tip'
1093 title: 'Text Highlight Color',
1094 text: 'Change the background color of the selected text.',
1095 cls: 'x-html-editor-tip'
1098 title: 'Font Color',
1099 text: 'Change the color of the selected text.',
1100 cls: 'x-html-editor-tip'
1103 title: 'Align Text Left',
1104 text: 'Align text to the left.',
1105 cls: 'x-html-editor-tip'
1108 title: 'Center Text',
1109 text: 'Center text in the editor.',
1110 cls: 'x-html-editor-tip'
1113 title: 'Align Text Right',
1114 text: 'Align text to the right.',
1115 cls: 'x-html-editor-tip'
1117 insertunorderedlist : {
1118 title: 'Bullet List',
1119 text: 'Start a bulleted list.',
1120 cls: 'x-html-editor-tip'
1122 insertorderedlist : {
1123 title: 'Numbered List',
1124 text: 'Start a numbered list.',
1125 cls: 'x-html-editor-tip'
1129 text: 'Make the selected text a hyperlink.',
1130 cls: 'x-html-editor-tip'
1133 title: 'Source Edit',
1134 text: 'Switch to source editing mode.',
1135 cls: 'x-html-editor-tip'
1139 // hide stuff that is not compatible
1157 * @cfg {String} fieldClass @hide
1160 * @cfg {String} focusClass @hide
1163 * @cfg {String} autoCreate @hide
1166 * @cfg {String} inputType @hide
1169 * @cfg {String} invalidClass @hide
1172 * @cfg {String} invalidText @hide
1175 * @cfg {String} msgFx @hide
1178 * @cfg {String} validateOnBlur @hide
1181 * @cfg {Boolean} allowDomMove @hide
1184 * @cfg {String} applyTo @hide
1187 * @cfg {String} autoHeight @hide
1190 * @cfg {String} autoWidth @hide
1193 * @cfg {String} cls @hide
1196 * @cfg {String} disabled @hide
1199 * @cfg {String} disabledClass @hide
1202 * @cfg {String} msgTarget @hide
1205 * @cfg {String} readOnly @hide
1208 * @cfg {String} style @hide
1211 * @cfg {String} validationDelay @hide
1214 * @cfg {String} validationEvent @hide
1217 * @cfg {String} tabIndex @hide
1220 * @property disabled
1224 * @method applyToMarkup
1244 * @method setDisabled
1252 Ext.reg('htmleditor', Ext.form.HtmlEditor);