Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/06/2008, 22:39
Avatar de Panino5001
Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años, 9 meses
Puntos: 834
Respuesta: <html> y <head> en FCKeditor

Si vas a esta página:
http://www.fckeditor.net/demo
Y pegás lo que sigue en la barra de direcciones del navegador y lo ejecutás, vas a darte cuenta de que el iframe ya contiene su propia estructura html y sólo podés manipular el tag body del mismo. Si agregás tags head o html, estarás generando un html mal estructurado (con un tag html y un tag head dentro del tag body), lo que seguramente producirá algún resultado inesperado:
Código PHP:
javascript:var myf document.getElementById("FCKeditor1___Frame");myf myf.contentWindow.document || myf.contentDocument;var myf2=myf.getElementById('xEditingArea').getElementsByTagName('iframe')[0].contentWindow.document || myf.getElementById('xEditingArea').getElementsByTagName('iframe')[0].contentDocument;alert(myf2.documentElement.innerHTML); 

Última edición por Panino5001; 22/06/2008 a las 15:02