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

[Solved] Many Editor Issues With FF 3.5

3 Answers 86 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Richard Buff
Top achievements
Rank 1
Richard Buff asked on 16 Sep 2009, 08:06 PM
Hi!

We are using the editor in Firefox and IE.  It works great in IE7 and 8.  Many of our users use Firefox also.  These editors are in an AjaxExtender Modal Popup. 

In FF, the editor shows vertically very short and mis-shapen.  If I click on one of the bottom buttons (HTML or preview), then the control sizes correctly!

My co-worker found a work-around script to help with this...
        function OnRadEditorClientLoad(editor, args) {  
            if (!document.all) {  
                window.setTimeout(function() {  
                    var editorIframe = $get(editor.get_id() + "Wrapper").getElementsByTagName("iframe")[0];  
                    editorIframe.style.height = "20px";  
                    editor.setSize(415, 55);  
                }, 100);  
            }  
 
            var style = editor.get_contentArea().style;  
            style.backgroundImage = "none";  
            style.backgroundColor = "white";  
        }  
 

However, this doesn't work.  I've played with the height and size values to no avail. 

The weird part is that when I click on one of the Change Edit buttons (tabs) then the control sizes correctly.

Any thoughts?  Is this a bug? 

Thanks In Advance
Rich

3 Answers, 1 is accepted

Sort by
0
Richard Buff
Top achievements
Rank 1
answered on 17 Sep 2009, 09:13 AM

Hi!

This is getting weirder and weirder... 

I put in some code to select the HTML edit button and then the Design mode (using set_mode).  When I set the mode (or manually click) the HTML button, the editor completely ignores the height I have set for it!  If I set_mode(4) (preview) then it's fine.

I even have an alert to give me the height that it thinks it is and the results are what I have set it to. 

        function ResizeEditor(editor, args) {  
            if (!document.all) {  
                window.setTimeout(function() {  
                    editor.set_mode(4);      
                    editor.set_mode(1);  
 
                    setTimeout(function() {  
                        var editorIframe = $get(editor.get_id() + "Wrapper").getElementsByTagName("iframe")[0];  
                        editorIframe.style.height = "15px";  
                        editor.setSize(415, 15);  
                        editor.get_element().style.height = "20px";  
                        alert(editor.get_element().style.height + " | " + editorIframe.style.height);  
                    }, 100);  
                }, 100);  
            }  
        }  
 


I'm sure that this is a bug with the editor - I'm sure that this isn't design behavior. 

Thanks!
Rich

0
Richard Buff
Top achievements
Rank 1
answered on 21 Sep 2009, 10:43 AM
Hi,

Any thoughts / fixes / updates on this?  This is a very critical issue that is affecting our release.

Thanks!
Rich
0
Rumen
Telerik team
answered on 22 Sep 2009, 07:46 AM
Hi Rich,

Could you please make sure that you use the latest official version of RadControls for ASP.NET AJAX Q2 2009 SP1 (2009.2 826)? This release offers enhancement to the RadEditor rendering in Firefox.

If you experience the problem with the latest version then please open a support ticket and send a sample fully working project that demonstrates the bug. I will examine the project as soon as possible and provide a solution after replicating the issue.

Sincerely,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Richard Buff
Top achievements
Rank 1
Answers by
Richard Buff
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or