Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/04/2007, 03:53
perikobermio
 
Fecha de Ingreso: diciembre-2006
Mensajes: 53
Antigüedad: 18 años, 3 meses
Puntos: 0
problemas con editor de texto

Aupa:

Mi problema es el siguiente: Estoy intentando hacer esto...

Código PHP:
<html>
<
head>
<
titleUsing execCommand to bold text </title>
<
script language="JavaScript">

function 
Init()
{
iView.document.designMode 'On';
}

function 
boldIt()
{
iView.document.execCommand('bold'falsenull);
}

</script>

<body onLoad="Init()">
<iframe id="iView" style="width: 200px; height:70px"></iframe>
<br><br>
<input type="button" onClick="boldIt()" value="Toggle Bold">
</body>
</html> 
...en este editor de testo me surgen varios problemillas:
1-No me funciona en el firefox (cual puede ser la razon)
2-No soy capaz de conseguir k funcione con un textarea en lugar de con un iframe.

Agradeceria cualquier ayuda o sugerencia de cualquier tipo, gracias por adelantado a tod@s

Agur