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

RadEditor Iframe Height issue in Google Chorme and Fire Fox

2 Answers 128 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Nitin
Top achievements
Rank 1
Nitin asked on 07 Jan 2014, 07:40 AM
Hello 

I am using RadEditor and i am facing an issue. when RadEditor is rendering first time it not showing any content.

Because height of Iframe is just 16px;

 
<iframe frameborder="0" src="javascript:'<html></html>';" id="ctl00_MasterPage_OrderMainInstructions_TxtOrderSpecialInstructions_contentIframe" title="Rich text editor with ID ctl00_MasterPage_OrderMainInstructions_TxtOrderSpecialInstructions" style="width: 100%; height: 16px; margin: 0px; padding: 0px;">Your browser does not support inline frames or is currently configured not to display inline frames.</iframe> 


Could you please help me to solve this issue?

Thanks
Ck Nitin

2 Answers, 1 is accepted

Sort by
0
Nitin
Top achievements
Rank 1
answered on 08 Jan 2014, 05:40 AM
I found out the solutions.

Here are...

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
        function OnClientLoad(editor, args) {
            if (!document.all) {
                window.setTimeout(function () {
                    var editorIframe = $get(editor.get_id() + "Wrapper").getElementsByTagName("iframe")[0];
                    editorIframe.style.height = "100%";
                    var divMinHeight = document.getElementById("ctl00_MasterPage_OrderMainInstructions_TxtOrderSpecialInst");
                    divMinHeight.style.minHeight = "400px";
                }, 100);
            }
        }
    </script>
</telerik:RadScriptBlock>

Thanks

Ck. Nitin
0
Ianko
Telerik team
answered on 09 Jan 2014, 01:44 PM
Hello,

You can try also if either of the provided workarounds in this forum thread are resolving the issue for your case.

If you have further difficulties, please get back to me with more details about the configuration of the used RadEditor control and the specific scenario of the built project.

Regards,
Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Editor
Asked by
Nitin
Top achievements
Rank 1
Answers by
Nitin
Top achievements
Rank 1
Ianko
Telerik team
Share this question
or