Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/02/2008, 03:25
kokoou
 
Fecha de Ingreso: enero-2008
Ubicación: Buenos Aires
Mensajes: 305
Antigüedad: 17 años
Puntos: 14
Re: Funcion con FCKeditor

Código HTML:
<head>
<script language="JavaScript">
function value(){
var myf = document.getElementById("FCKeditor1___Frame");
myf = myf.contentWindow.document || myf.contentDocument;
var myf2=myf.getElementById('xEditingArea').getElementsByTagName('iframe')[0].contentWindow || myf.getElementById('xEditingArea').getElementsByTagName('iframe')[0].contentDocument;
alert(myf2.document.body.innerHTML);
}
</script>
</head>
<iframe src="copete_fck.php" id="FCKeditor1___Frame" name="FCKeditor1___Frame"></iframe>
<form name="form1">
<input type="button" onclick="JavaScript:value();" value="mostrar">
</form> 
ahi cree la funcion en js, y la llamo al apretar el boton y no pasa nada =/

el fck tiene de value predefinido un msj cargado por PHP

Código PHP:
$oFCKeditor->Value $MSJ
El codigo esta tal cual lo comentas vos en el otro tema, pero no anda =/

Última edición por kokoou; 05/02/2008 a las 04:05