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

  • Home
  • SEARCH
  • 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 5985121
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:28:57+00:00 2026-05-22T22:28:57+00:00

Odd problem here. Working with an existing system that uses TinyMCE as it’s text

  • 0

Odd problem here.

Working with an existing system that uses TinyMCE as it’s text editor.

I’ve created a page which contains a whole lot of movable divs using jquery sortables. Now TinyMCE doesn’t seem to like being moved in the dom so after doing a bit of research it appears I have to remove the tinymce instance from the textbox within the div being moved and add it back in at the end of the drag. I can do remove the instance fine but however when I go to add it back in, it won’t.

I have the most up to date version of TinyMCE, a slightly older version of jQuery (tried updating but no luck).

Can’t work this out hence this post 🙂

 $(function() {
    $("#categoryorder").sortable({ 
    opacity: 0.6, 
    cursor: 'move',
    revert: true,
    forcePlaceholderSize: true,
    scrollSensitivity: 40, 
    start: function(e, ui) {
             tinyMCE.execCommand( 'mceRemoveControl', false, 'textarea1' );
    },
    stop: function(e,ui) {
            // won't add back here for some reason
            tinyMCE.execCommand( 'mceAddControl', false, 'textarea1' );
            $(this).sortable( "refresh" );
    }
    });
});

Not sure why it won’t add back, any ideas?

  • 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-05-22T22:28:57+00:00Added an answer on May 22, 2026 at 10:28 pm

    I know this is an oldish post but incase someone if googling for this issue:

    I am not sure what you are trying to achieve with the refresh call to sortable.

    but this is what I did to make it work for me

    I am using the jquery.tinymce – just to try it out..
    I have the tinymce settings elsewhere so I can call different settings depending what I am initializing but the concept is sound – so here are my start and stop methods for sortable

    start : function(event, ui) {
    // mce editor needs to be removed and readded when move finsihed
         $("textarea",ui.item).tinymce().remove();
    },
    stop : function(event, ui) {
         $("textarea",ui.item).tinymce(myconfig.tinymcesettings);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Very odd problem as this is working perfectly on our old Classic ASP site.
I have an odd problem...I'm using a documentation generator which generates a lot of
I've encountered an odd problem that doesn't make any sense to me. I am
I have the odd problem that I am not able to open the properties
I'm working on a WPF application that sometimes exhibits odd problems and appears to
I have an odd problem. I have a page called search.aspx. When the search
Yesterday I discovered an odd bug in rather simple code that basically gets text
I recently encountered an odd problem with RSACryptoServiceProvider.VerifyHash . I have a web application
I had an odd problem today when I was trying to serialize an object.
I have an odd problem in VS2008 running unit tests. When I run the

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.