Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8420839
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:58:09+00:00 2026-06-10T02:58:09+00:00

I have a display: none div with a child wysiwyg editor. I have had

  • 0

I have a “display: none” div with a child wysiwyg editor. I have had this problem with both jHtmlArea and CKEditor, so i believe this to be an iframe issue. For this example, I am using jHtmlArea. Without the “display: none;”, everything works fine. When hidden however, I “show” the div with the child editor, and then it doesn’t fully load. I had researched this issue some time ago, but couldn’t find a solution. I believe I remember finding something that said that hidden iframes had some kind of reloading problem, but can’t find the post. Anyone have any suggestions? Thank you ahead of time for your time and expertise!

<script type="text/javascript">
    $(document).ready(function () {
        $("textarea").htmlarea();
    });
</script>

<div id="container" style="display: none;">
    <textarea></textarea>
</div>

<a href="javascript:void(0);" onclick="$('#container').show()">Show me!</a>

I have already tried this solution to no avail.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:58:10+00:00Added an answer on June 10, 2026 at 2:58 am

    Thanks to both @Humberto and @Siwei-Kang for their suggestions. Their work helped me come up with this solution.

    I instantiate the htmlarea on button click, rather than on page load. I added some additional features as well:

    • instantiate htmlarea in show() callback function
    • textarea begins as “visibility: hidden” to reserve real estate on show(), but also to reduce flicker when htmlarea appears.
    • Set textarea back to visible after htmlarea instantiation, so that “html” button still functions

    See this jsFiddle

    <script type="text/javascript">
        function toggle() {
            $('#container').toggle('blind', function() {
                $('#container textarea').htmlarea().css("visibility", "visible");
            });
        }
    </script>
    
    <div id="container" style="display: none;">
        <textarea style="visibility: hidden; width: 300px;"></textarea>
    </div>
    
    <a href="javascript:void(0);" onclick="toggle();">Toggle me!</a>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an HTML along the following lines: <div class=hiddenClass> // this implies display:none
I have this html-code: <div class=im> <div style=height:220px>HELLO WORLD! <a class=close>X</a> <a class=open style=display:none;>V</a>
So I have problems with sliding from left to right div with display:none. <div
I got a div tag which initially is set to have display:none and will
I have the code: <div id=parent> <div id=firstchild style=display:none> <div id=secondchild> <div id=thirdchild style=display:none>
i have the following code: <div id=imgThumb> <img id=t1 src=images/cards/1.png style=display:none; /><img id=t13 src=images/cards/13.png
If I have function OnMouseIn (elem) { elem.style.display= block; } <div onmouseover=OnMouseIn (this.XXXXXXX)> <div
When you set an html element to have display: none , the content inside
I have a script which hides (display:none) certain divs in the list on page
i have the following select box and want to sort it by display:none inlne

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.