Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Jan 2009
    Posts
    17
    Vote Rating
    0
    damon1977 is on a distinguished road

      0  

    Default [DUPE-519][3.1] HTMLEditor setReadOnly() toolbar disable toggle is backwards

    [DUPE-519][3.1] HTMLEditor setReadOnly() toolbar disable toggle is backwards


    I don't know if this has been fixed for 3.1.1 yet, but in 3.1.0...

    Code:
        setReadOnly: function(readOnly){
            if(this.initialized){
                var newDM = readOnly ? 'off' : 'on',
                    doc = this.getDoc();
                if(String(doc.designMode).toLowerCase() != newDM){
                    doc.designMode = newDM;
                }
                this.disableItems(!readOnly);
            }
            Ext.form.HtmlEditor.superclass.setReadOnly.call(this, readOnly);
        },
    should be...

    Code:
        
         setReadOnly: function(readOnly){
            if(this.initialized){
                var newDM = readOnly ? 'off' : 'on',
                    doc = this.getDoc();
                if(String(doc.designMode).toLowerCase() != newDM){
                    doc.designMode = newDM;
                }
                this.disableItems(readOnly);
            }
            Ext.form.HtmlEditor.superclass.setReadOnly.call(this, readOnly);
        },

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    This was fixed in svn 5901.

Thread Participants: 1