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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T16:48:47+00:00 2026-06-05T16:48:47+00:00

I developed a custom file manager for tinymce. But even if adding image to

  • 0

I developed a custom file manager for tinymce. But even if adding image to tinymce in firefox works, it does not work in ie with the following code block.

 tinyMCE.activeEditor.selection.setContent("<img src='" + $(this).attr("data-url") + "' style='width:150px; height:150px;' />");

In internet Explorer, it deletes all contents in tinymce and add the image because of empty “tinyMCE.activeEditor.selection”. About this I found following post.
What’s the best way to set cursor/caret position?

But after user open file manager popup , s/he may want to close it without adding file. If this happens, I should delete the html that I add for cursor/caret position to find later selection in ie.

I tried add a click event to close link of the popup, however it does not work. I need to sense popup close and customize it.

  • 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-05T16:48:50+00:00Added an answer on June 5, 2026 at 4:48 pm

    with this code , I am able to delete caret html.

     $($(parent.document).find("a.mceClose")[0]).mousedown(function () {
                    if ($.browser.msie) {
                        var ed = tinyMCE.activeEditor;
                        var html = $(ed.dom.select('div#filemanager_wrapper')[0]).html();
                        $(ed.dom.select('div#filemanager_wrapper')[0]).replaceWith(html)
                    }
    
                });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed an SSIS custom task component. It uses a connection manager of
I have developed a PyroCMS custom module, but now I want to add WYSIWYG
I have developed a custom dijit Templated Widget. I have to do some DOM
I have developed a custom target, that needs to run only if the compilation
I'm part of a software development company where we do custom developed applications for
If a custom list control is to be developed for S60 5th edition phones,
We have our own custom calendar in our portal which is developed in Java.
I am writing a custom editor in a plugin, and I developed it in
I've developed a 'custom' cout, so that I can display text to console and
We've developed a custom plugin for Notes 8.5.2. It records a number of custom

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.