Dado el siguiente código:
`<form>
<textarea id="text_capture"></textarea>
<textarea id="default"></textarea>
<button type="submit" id="btn-export" class="input__label-btn" onclick="extraerYMostrarTexto();
return false;">Exportar datos</button>
<textarea id="esc"></textarea>
<button type="submit" id="btn-guardar" class="input__label-btn" onclick="abrirPDF()"></button>
</form>`
Deseo importar a “esc” los datos capturados en “text_capture” y “default”(usa tinyMCE) cuando doy click en “btn-export”, pero al hacerlo solo me muestra los datos de “text-capture” y me devuelve en consola el mensaje: Failed to load resource: ***net::ERR_FILE_NOT_FOUND … /C:/Users/Juan/OneDr…ate/plugin.min.js:1
Adjunto el js por el cual intento hacer el export:
`function extraerYMostrarTexto() {
var textCaptureValue = document.getElementById("text_capture").value;
var defaultValue = document.getElementById("default").value;
var combinedValue = textCaptureValue + "n" + defaultValue;
document.getElementById("esc").value = combinedValue;
console.log("default:", defaultValue);
console.log("textValue:", textCaptureValue);
}`
He intentado encontrar el plugin mencionado pero no he tenido suerte
En la carpeta en la que están alojados los plugins de tinyMCE no he encontrado el correspondiente a la función “export”
Juan Sanchez is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.