1
Vote

Editor needs to implement accessible properties

description

Setting the Properties during Page Load or On Pre Render has no effect!
 
It should? yes?
 
I will be working on this as its important when users change there theme that they do not end up with a black background and black text!
 
protected override void OnPreRender(EventArgs e)
    {
        WebControl wc = Editor1.FindParentControl<WebControl>();
        if (wc != null)
            ApplyBackColors(wc.BackColor);
    }
 
    private void ApplyBackColors(Color c)
    {
        Editor1.BackColor = Color.GetOpposing(c);
    } // Note that this Color Method is an extension!

comments