Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

222
Views
How to prevent Windows Explorer opening when opening an image dialog with TinyMce?

I need to get an URL into the file_picker_callback function, so that the image dialog opens my php form instead of the basic image dialog

The problem is that it opens my Windows Explorer over the image dialog. I can close it and then I can see my own form but how to avoid the Explorer opening ?

The second problem (solved - see below) is that I need to add an id at the end of my URL. So I need to get it through a variable linked to the original form (the one where I want to integrate the image).

Finally, I solved the second problem of the id this way :

file_picker_callback: function (cb, value, meta) {
   var post_id = document.getElementById('inputid').getAttribute('value');
   var myUrl = "http://localhost/www/Tuto/pilote/medias/index/" + post_id;
   tinymce.activeEditor.windowManager.openUrl({    
        title: 'Gallerie',
        url: myUrl,
        width: 500,
        height: 400,
        resizable: 'yes',
        inline: 'no',
        close_previous: 'no'
   });

[...]

I still need help to prevent the Windows Explorer to open before my image dialog.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!