Home -> openWYSIWYG -> openWYSIWYG Demo (Add page):



openWYSIWYG Demo : Add page , php Code:

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="openwysiwyg_v1.4.7/docs/style.css" type="text/css">
<script type="text/javascript" src="openwysiwyg_v1.4.7/scripts/wysiwyg.js"></script>
<script type="text/javascript" src="openwysiwyg_v1.4.7/scripts/wysiwyg-settings.js"></script>
<script type="text/javascript">
//WYSIWYG.attach('textarea1'); // default setup
WYSIWYG.attach('textarea2', full); // full featured setup
//WYSIWYG.attach('textarea3', small); // small setup
</script>
</head>

<body id="firstpage">

<form method="POST" action="openwysiwyg_add2.php">
<textarea id="textarea2" name="test2" style="width:80%;height:200px;"></textarea>
<input type="hidden" name="do" value="add" />
<br>
<input type="submit" name="Submit" value="Submit">
</form>


</body>
</html>