firefox issue when editor hidden by display=none becomes visible with display=block

  •  04-21-2006, 10:25 AM

    firefox issue when editor hidden by display=none becomes visible with display=block


    I have a page with 4 Editor controls on it, one of which is displayed initially and the other 3 are hidden using a DIV with the style "display=none".  The Editor control that is initally visible works fine, the problem is with the hidden editor controls.

    When the link that hides these hidden controls is clicked, the css display value becomes block.  Everything works correctly and the Editor controls are displayed properly with the exception that when the Editor controls become visible, one cannot type into the text area initally.  The reason for this is because neither "Normal" nor "HTML" (Preview is disabled) are selected by default in the bottom bar when the controls become visible.  The workaround is easy, just select one of the 2 values and you can type in the text area, however, I wanted to know if there is a way to set either of these to be the default when the control becomes visble. 

    BTW, each Editor control is encapsulated within our own control and I was thinking of adding this change in it's constructor, if possible.  Here is what the constructor for the wrapper looks like:

            Editor _ed = new Editor();

            /// <summary>
            /// The constructor that configures the CuteEditor for the text box
            /// and adds it to the list of controls.
            /// </summary>
            public TextBoxEditor() : base()
            {
                _ed.AutoConfigure = CuteEditor.AutoConfigure.Simple;
                _ed.ThemeType = CuteEditor.ThemeType.OfficeXP;
                _ed.ShowPreviewMode = false;
                _ed.ShowEnlargeButton = _ed.ShowDecreaseButton = false;

                //Default the width of the text editor to 100% unless overridden.
                _ed.Width = new Unit(100,UnitType.Percentage);

                this.Controls.Add(_ed);
            }

    FWIW, IE does not have the problem, only Firefox seems to.  Is it possible to set a default in the bottom bar?
View Complete Thread