[workaround] Is there a way to specify a tabIndex in the HtmlEditor?
Setting the tabIndex in the config doesn't do anything, but I thought I'd give it a try. Also, setting the tabindex attribute on the textarea on render isn't working either. Anyone have ideas? Do I have to listen for the tab key and focus the iframe? Here's what I have so far:
Code:
this.htmlEditorComments = new Ext.form.HtmlEditor({
fieldLabel:'Comment',
name: 'entry_html',
hideMode: 'display',
tabIndex: 13,
autoMonitorDesignMode: false,
width: 575,
height: 70
});
this.htmlEditorComments.on("render",function(editor){
var wrap = Ext.get(editor.el.dom.parentNode)
var tbar = wrap.select('.x-html-editor-tb');
var textarea = wrap.select('.x-form-textarea').elements[0];
textarea.setAttribute('tabindex',13);
// console.log(textarea);
tbar.elements[0].style.display = "none";
},this);