Task content Information (editor) var logmsgedit=new Ext.form.HtmlEditor ({id: "Logmsgedit", Name: "Logmsgedit", Fieldlabel: "Task content", width : 450}); ReadOnly is invalid in/*logmsgedit, the following method overrides HTMLEditor to implement HTMLEditor read-only property http://www.sencha.com/forum/showthread.php?26657- Fixed-92-3.0.0-2.x-htmleditor-readonly-and-disabled-not-working&highlight=htmleditor+property * Ext.override (Ext.form.HtmlEditor, {/** * Set a readonly mask over the editor * @param {Boolean} readonly-true to set th E Read only, False to switch to the editor/setreadonly:function (readOnly) {if (readOnly) {this.syncvalue (); VA R romask = This.wrap.mask (); RoMask.dom.style.filter = "alpha (opacity=0);"; IE roMask.dom.style.opacity = "0"; Mozilla roMask.dom.style.background = "white"; RoMask.dom.style.overflow = "scroll"; This.el.dom.readOnly = true; } else {if (this.rendered) {this.wrap.unmask ();} this.el.dom.readOnly = false;}} });
When the page loads, the readonly of the control is set to read-only ext.getcmp ("Logmsgedit"). Setreadonly (True);