This is a migrated thread and some comments may be shown as answers.

RadEditor: Design view in IE7 not respecting CSS "display:none"

2 Answers 85 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Gavin
Top achievements
Rank 1
Gavin asked on 25 Jul 2008, 10:34 PM
Telerik.Web.UI
File Version: 2008.1.415.35
Product Version: 2008.01.0415.35

Hi,

Although my div has a style "display:none", it still shows up on IE7 in Design view. It doesn't show up in Firefox 3.

You can replicate it by pasting the code below in HTML view at Telerik RadEditor Online Demo (default).

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
"http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
 
    <style type="text/css">  
      
    .foo{  
        display:none;  
        width:100px;  
        height:100px;  
        background-color:blue;  
    }  
              
    </style> 
          
    <body> 
        div under me should be hidden  
        <div class="foo">blue div</div> 
    </body> 
</html> 

Hope to hear a reply soon. Thanks!

Gavin

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 29 Jul 2008, 02:26 PM
Hi Gavin,

RadEditor uses the rich text editing engine of the browser under which it operates. The RTF engine has different implementation in the different browser and it behaves differently in them. The observer behavior is a browser behavior which is not controlled by RadEditor and it can be reproduced with our competitors' DHTML editors as well as with a simple editable DIV / IFRAME element (the content area of the editor is editable IFRAME).

For your convenience I have attached a sample HTML page containing an editable IFRAME element for test. If you are able to find a solution with it then it will work with RadEditor too.

Best wishes,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Gavin
Top achievements
Rank 1
answered on 29 Jul 2008, 04:29 PM

Hi Rumen,

I understand that we all have to work under the constraints of whatever each browser decides to implement. Just wanted to check that it isn't a bug.

Thanks.

gavin
Tags
Editor
Asked by
Gavin
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Gavin
Top achievements
Rank 1
Share this question
or