Foros del Web » Programando para Internet » Javascript »

<html> y <head> en FCKeditor

Estas en el tema de <html> y <head> en FCKeditor en el foro de Javascript en Foros del Web. Hola Gente, necesito utilizar el fck con la opcion de pegar un HTML entero con las etiquetas de html, head, etc, pero cuando vuelvo a ...
  #1 (permalink)  
Antiguo 02/06/2008, 14:08
Avatar de lalogrosz  
Fecha de Ingreso: mayo-2002
Ubicación: Capital Federal
Mensajes: 339
Antigüedad: 22 años
Puntos: 6
<html> y <head> en FCKeditor

Hola Gente, necesito utilizar el fck con la opcion de pegar un HTML entero con las etiquetas de html, head, etc, pero cuando vuelvo a ver ese codigo me corta todo lo que hay fuera del <body></body>

Existe alguna opcion para deshabilitar eso? No logro encontrarlo.

Gracias!
__________________
"Vivir....solo cuesta Vida"
  #2 (permalink)  
Antiguo 02/06/2008, 14:15
Avatar de GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: <html> y <head> en FCKeditor

Tema trasladado a Javascript.
  #3 (permalink)  
Antiguo 03/06/2008, 22:39
Avatar de Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años
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
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 20:33.