PDA

View Full Version : Ext Htmleditor readOnly js error



HTK
16 Nov 2012, 1:46 AM
My ExtJs 4.1.2 HtmlEditor throws an javascript error instantiating it with readOnly: true.

NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLDocument.execCommand]
Somebody here who knows what causes this error ?

mitchellsimoens
19 Nov 2012, 9:09 AM
This is working for me in 4.1.2 and 4.1.3:


new Ext.form.Panel({
renderTo : document.body,
items : [
{
xtype : 'htmleditor',
fieldLabel : 'Test',
readOnly : true
}
]
});

HTK
20 Nov 2012, 12:07 AM
Then maybe it´s anywhere else in the code. Our company is working on a CMS, so it´s too complex to post code here. I´ll have to debug myself. Thank´s for answering.

sebbio
8 Jan 2013, 6:31 AM
This error can reproduce in FF 17.0.1