Ciao a tutti,

ho una textarea che viene popolata da una select su una popup.
Funziona tutto a meno che la textarea non sia gestita da TINYMCE.

Sapete dirmi perchè e se c'è una soluzione?

Grazie fin d'ora.

file PROCPO1.php
Codice PHP:
echo "
<html>
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\">
<title></title>
<script type=\"text/javascript\" src=\"tiny_mce/tiny_mce.js\"></script>
<script type=\"text/javascript\">
// Initialize TinyMCE with the new plugin and menu button
tinyMCE.init({
    plugins : '-example', // - tells TinyMCE to skip the loading of the plugin
    mode : \"textareas\",
    language : \"it\",
    mode : \"specific_textareas\",
    editor_selector : \"tarea1\",
    elements : \"c[2]\",
    theme : \"advanced\",
    theme_advanced_buttons1 : \"bold,italic,underline,outdent,indent,separator,hr,separator,fontsizeselect,separator,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist\",
    theme_advanced_buttons2 : \"\",
    theme_advanced_buttons3 : \"\",
    theme_advanced_toolbar_location : \"top\",
    theme_advanced_toolbar_align : \"left\"
});
</script>
</head> 
<body>

<form name='fr01' action='procpo1.php' method='post'>
<input type='submit' class='modifica1' name='fr01s1' value='Conferma dei dati'>
<table>
<tr>
<td>Titolo dell'introduzione<input type='text' name='c[1]' value='"
.$vf017[1]."'>
<input type='button' name='form01buru01' value='Archivio' onClick=\"window.open('cercaintro.php','Archivio','width=600,height=300 ,toolbar=no, location=no,status=no,menubar=no,scrollbars=yes,resizable=yes')\">
</td></tr>
<tr><td>Testo dell'introduzione

<textarea class='tarea1' id='c[2]'>"
.$vf017[2]."</textarea></td></tr>
</table>
</form>
"

file CERCAINTRO.php
$matriceintro è l'array con le scelte selezionata da DB

Codice PHP:
echo "<form method='post' name='ff1' action='#'>
<select name='s1'>"
;
for(
$a=0;$a<$quanti;$a++){
    echo 
"<option value='".$matriceintro[$a][breve]."'>".$matriceintro[$a][breve]."</option>";
}
?>
</select>
<input type='button' name='b1' value='Conferma' onclick="window.opener.document.getElementById('c[1]').value=this.form.s1.value, window.opener.document.getElementById('c[2]').value=this.form.s1.value, self.close()">
<input type='button' name='b2' value='Chiudi' onclick="self.close()">
</form>