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 8871737
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:03:50+00:00 2026-06-14T18:03:50+00:00

Assume that jquery.js , jquery-ui.js , jquery-tinymce.js are already loaded. And tinyMCE object is

  • 0

Assume that jquery.js, jquery-ui.js, jquery-tinymce.js are already loaded. And tinyMCE object is instantiated.
So here’s script with markup:

<script type="text/javascript">

  $(functon() {

  $("#AddComment").click(function(){

     $("#Dialog").dialog({
        modal :  true,
        show  : "fade",
        hide  : "fade",
        buttons : {
           OK : function(){
              // some ajax requests...
           }

       }
     });

  });

  });

</script>

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


<button id="AddComment">Add comment</button>

But it works as expected without dialog (when textarea (tinymce activeeditor) on page)

By “Does not work” I mean that, when dialog is shown (modal dialog ~modal div) it’s impossible to click on “whitearea” and add|edit|remove content

So the question is: Why doesn’t TinyMCE work within modal div?

  • 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-14T18:03:51+00:00Added an answer on June 14, 2026 at 6:03 pm

    I had this problem.

    For starters, I strongly recommend you instantiate tinymce after the modal dialog is on screen. I found that tinyMCE would try to take up the “most effective” amount of space on screen so is in effect invisible and/or the whole screen depending on how the modal box is set up.

    There is something else though, you might notice that after closing the dialog box, your ability to interact with the page is disabled within the area tinyMCE was present! It is possible that your page is already experiencing this behaviour.

    What fixed the problem for me (although not so elegant but, after pulling out my hair) I chose to destroy the dialog box and be sure to hide tinymce after the form had recieved a pass response from the server.

    There are two commands to use for this

    1. Nuke the dialog box from orbit

      $('#modal-dialog').dialog('destroy');
      
    2. Check for presence of tinymce and hide it if found

      if ($(".textarea").length) {
          $('.textarea').tinymce().hide();
      };
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assume that I receive a Spanish text written in MS word and saved as
Assume that I have a particular class of object that defines a class method
Is it correct to assume that JQuery is not actually an implementation of ECMA
Let's assume that we have following jQuery plugins (each of them in separate files):
I'm using javascript and jQuery. I have a problem that my web app has
Assume that a hidden field <input type=hidden id=hdn name=hdn value=100 /> So i want
Let's assume that we have simple jQuery code like the following: var $document =
I'm using Knockout with jQuery and jQuery templates. Assume that I have a template
The reason that the title is named jQuery / Javascript undefined isn't because that
lets assume that I have the following ... jQuery('#a').click(function(){ myFunction(); }); function myFunction(){ var

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.