ExtJs HtmlEditor ReadOnly Invalid __js

Source: Internet
Author: User

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);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.