Click to See Complete Forum and Search --> : editor written in javascript


hippo
May 2nd, 2002, 02:19 PM
does anyone know where i can find a free html editor written in javascript? ie a script that converts text in a textarea into html
please please please

websmith99
September 27th, 2002, 05:33 PM
??

It sounds like you're describing a parser rather than an editor.

Is this for syntax checking?

Waldo2k2
September 27th, 2002, 11:11 PM
This works:

<html>
<head>
<script language="javascript">
var newWindow;
function parseIt()
{
var parsedContent=document.forms[0].theText.value;
newWindow=window.open("","","Height=300,Width=300");
newWindow.document.write(parsedContent);
}
</script>
</head>
<body>
<form>
<textarea id="theText">
Type HTML Here
</textarea>
<button id="theButton" onclick="parseIt()">
Parse
</button>
</form>
</body>
</html>

Hope it's to your liking.