Download
http://ckeditor.com/download
Code:
<html>
<head>
<script type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
</head>
<body>
<textarea name="yourself" class="xlarge" id="yourself"><h1>hi</h1></textarea>
<script type="text/javascript">
tinyMCE.init({
theme : "advanced",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
mode : "exact",
elements : "yourself"
});
</script>
</body>
</html>
http://ckeditor.com/download
Code:
<html>
<head>
<script type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
</head>
<body>
<textarea name="yourself" class="xlarge" id="yourself"><h1>hi</h1></textarea>
<script type="text/javascript">
tinyMCE.init({
theme : "advanced",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
mode : "exact",
elements : "yourself"
});
</script>
</body>
</html>
<html>
<head><script type="text/javascript" src="ckeditor/ckeditor.js"></script></head>
<body>
<h1>Edit Article</h1>
<form action="form_handler.php" method="post">
<div>
<h1>Article Title</h1>
<textarea name="content" rows="10" cols="80">Here's some sample text</textarea>
<script type="text/javascript">
CKEDITOR.replace('content');
</script>
<input type="submit" value="Submit" /></div>
</form>
</body>
</html>
No comments:
Post a Comment