Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/04/2009, 23:01
rls
 
Fecha de Ingreso: marzo-2008
Mensajes: 48
Antigüedad: 16 años, 10 meses
Puntos: 0
No puedo mostrar el fckeditor dentro de un div

hola a todos mi problema es el siguiente:

Tengo los archivos js del fckeditor, me funciona bien, pero cuando lo quiero mostrar dentro de un div NO me lo muestra utilizando el navegador IExplorer, porque en el firefox si me lo muestra. Yo requiero q lo muestre en los dos.

Les pongo el codigo sin el div y mas abajo con el div:

SIN EL DIV (Asi me funciona)

Código:
<html>
<head>
<script type="text/javascript" src="tmp/fckeditor/fckeditor.js"></script>
<script type="text/javascript">

window.onload = function()
{   
    var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
    var oFCKeditor = new FCKeditor("FCKeditor1") ;
    oFCKeditor.BasePath = sBasePath ;     
    oFCKeditor.ReplaceTextarea() ;          
}
</script>
</head>
<body>
      <textarea id="FCKeditor1" style="width:200px; height:200px">   
      </textarea>
</body>
</html>


CON EL DIV (Asi NO me funciona)
Código:
<html>
<head>
<script type="text/javascript" src="tmp/fckeditor/fckeditor.js"></script>
<script type="text/javascript">

window.onload = function()
{   
    var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
    var oFCKeditor = new FCKeditor("FCKeditor1") ;
    oFCKeditor.BasePath = sBasePath ;     
    oFCKeditor.ReplaceTextarea() ;          
}
</script>
</head>
<body>
 <div id="div1" style="width:200px;height:200px">
      <textarea id="FCKeditor1" style="width:200px; height:200px">   
      </textarea>
</div>
</body>
</html>
Les repito que esto solo pasa en el Internet Explorer, y es necesario que funcione porque los usuarios del sistema estan acostumbrados a utilizar ese navegador. A demas decirles que esto es solo una parte del código y es necesario q si o si este dentro de un div