Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

219
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda