RadEditor Iframe Height issue in Google Chorme and Fire Fox

3 posts, 0 answers
  1. Nitin
    Nitin avatar
    2 posts
    Member since:
    Jan 2014

    Posted 07 Jan 2014 Link to this post


    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?

    Ck Nitin
  2. Nitin
    Nitin avatar
    2 posts
    Member since:
    Jan 2014

    Posted 07 Jan 2014 Link to this post

    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);


    Ck. Nitin
  3. Ianko
    Ianko avatar
    1956 posts

    Posted 09 Jan 2014 Link to this post


    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.

    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.
Back to Top