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

241
Views
TinyMCE (incrustado en el control Webbrowser .NET): no se puede abrir una imagen local

Contexto :

En una aplicación Winform VB.NET, que se ejecuta en Windows 10, .NET 5.0, uso un TinyMCE incrustado en un control Webbrowser para mostrar un editor html WYSIWYG en un formulario, inspirado en esto para hacerlo . todo funciona bien hasta ahora, pero modifiqué TinyMCE para poder cargar la imagen desde el disco local después de esto

Problema :

En este extraño TinyMCE incrustado, se abre la ventana emergente para agregar una imagen desde la unidad local, el botón para explorar el directorio local está allí, se puede hacer clic pero no hacer nada.

Código utilizado : no sé dónde se encuentra el problema. VB.NET? ¿JS? ¿Hay algún tipo de limitación del navegador web? Usé Tiny MCE 4.3.4.

Aquí está el javascript utilizado para iniciar TinyMCE

 <script> tinymce.init({ selector: '#editorcontent', plugins: ['autolink link lists charmap hr anchor', 'searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime nonbreaking', 'table contextmenu directionality paste textcolor', 'image'], setup : function(ed) { ed.on('init',function(e) { ed.execCommand('mceFullScreen'); })}, // enable title field in the Image dialog image_title: true, // enable automatic uploads of images represented by blob or data URIs automatic_uploads: true, // add custom filepicker only to Image dialog file_picker_types: 'image', file_picker_callback: function(cb, value, meta) { var input = document.createElement('input'); input.setAttribute('type', 'file'); input.setAttribute('accept', 'image/*'); input.onchange = function() { var file = this.files[0]; var reader = new FileReader(); reader.onload = function () { var id = 'blobid' + (new Date()).getTime(); var blobCache = tinymce.activeEditor.editorUpload.blobCache; var base64 = reader.result.split(',')[2]; var blobInfo = blobCache.create(id, file, base64); blobCache.add(blobInfo); // call the callback and populate the Title field with the file name cb(blobInfo.blobUri(), { title: file.name }); }; reader.readAsDataURL(file); }; input.click(); } } );

Información adicional : el script funciona de maravilla si se ejecuta en Chrome, FF o Edge. Parece que el navegador web .NET se comporta como IE7.

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!