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


openWYSIWYG Demo : Modify page , php HTML 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">

<?php
$text='rich text editor with <b>Content</b>';
$text=htmlspecialchars($text);
?>
<form method="POST" action="openwysiwyg_modify2.php">
<textarea id="textarea2" name="test2" style="width:80%;height:200px;"><?php echo $text;?></textarea>
<input type="hidden" name="do" value="up" />
<input type="submit" name="Submit" value="Submit">
</form>

 

 

</body>
</html>