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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T10:53:26+00:00 2026-06-07T10:53:26+00:00

I am using the TinyMCD plugin in the Dialog plugin. Everything works fine, until

  • 0

I am using the TinyMCD plugin in the Dialog plugin.

Everything works fine, until I set the dialog’s modal parameter to true.
When I am doing that, the TinyMCE textarea works fine only the first time the dialog is opened and then becomes read only.

Here is the example of my code:

tinyMCE.init({ mode: 'none' });
        var dlgComments = $('#dlgInternalComments');
        if (dlgComments.length == 0)
        {
            dlgComments = $('<div/>').attr('id', 'dlgInternalComments'),
                txtAreaComments = $('<textarea/>').attr('id', 'txtInternalComments').appendTo(dlgComments);

            dlgComments.dialog({
                height: 300,
                width: 800,
                modal:true,
                open: function ()
                {
                    if ($('#txtInternalComments_parent', $(this)).length == 0)
                    {
                        var ddd = {mode:'none'}; //$.extend({}, Globals.RichTextBox, { mode: 'none' });
                        txtAreaComments.tinymce(ddd);
                    }
                },
                buttons: {
                    'Parse': function ()
                    {
                        processAuthorsParagraph();
                        $(this).dialog('close');
                    }
                }
            });
        }
        else
        {
            dlgComments.dialog('open');
        }

I don’t know how to fix this issue. I have tryed some suggestions from here: http://www.codestumps.com/2011/05/adding-tinymce-into-a-jquery-ui-dialog/ but I haven’t found the solution.

If you can help me, thank you very much.

  • 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-07T10:53:29+00:00Added an answer on June 7, 2026 at 10:53 am

    Problem resolved, here is the full working code:

    function removeTinyMCE () {
        tinyMCE.execCommand('mceFocus', false, 'dialog-modal');
        tinyMCE.execCommand('mceRemoveControl', false, 'dialog-modal');
    }
    
    function addTinyMCE() {
        jQuery('#dialog-modal').tinymce({
            script_url: '/js/tiny_mce_3.2.7_jquery/jscripts/tiny_mce/tiny_mce.js',
            width: "800px",
            mode: "textarea",
            theme : "simple",
        });
    }
    
    function addAuto()
    {
        $('#dialog-modal').dialog({
            autoOpen: true,
            modal: true,
            title: "Email Dialog",
            open: addTinyMCE,
            close: function() {
                removeTinyMCE();
                $(this).dialog('destroy');
            },
            buttons:  {
                'Cancel': function() {
                    processAuthorsParagraph();
                    removeTinyMCE();
                    $(this).dialog('destroy');   
                }
            }
        });
    }
    

    And the html for the dialog is:

    <div style="display: none"; id="dialog-modal" title="Basic modal dialog" style="display: none" ></div> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using TinyMCE jquery plugin in my project. It works fine. I am
When I try to insert a link using the TinyMCE link plugin all that
I'm using the BBCode plugin with TinyMCE and see that line breaks are not
I'm using the jQuery version of TinyMCE 3.3.9.3 In firefox, it works fine (10
I'm using the jQuery plugin for TinyMCE and have had a hard time trying
I am using the jQuery plugin from the jQuery build of TinyMCE. This simplified
i am using facebox (a jquery modal plug-in) and tinymce for my textboxes. however
I am using tinyMCE editor plugin. It converts texareas into iframes and a toolbar
I am using a plugin for wordpress called CMS its a plugin that makes
I'm using tinymce jquery plugin and trying to access the api after initializing an

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.