
24/09/2010, 09:03
|
 | 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: Editor Wysiwyng muy simple Aquí algo muy sencillo:
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<script>
function formatText(cmd,v){
document.execCommand(cmd, false, v);
}
</script>
</head>
<body>
<form action="" method="get"><input name="input" type="button" onclick="formatText('fontSize',1)" value="1" /><input name="input" type="button" onclick="formatText('fontSize',2)" value="2" /><input name="input" type="button" onclick="formatText('fontSize',3)" value="3" />
</form>
<div id="pp" contenteditable="true">Este es un texto editable</div>
</body>
</html>
|