来源:http://code.google.com/p/lwrte/
应用例子:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>A Light weight RTE jQuery Plugin</title>
<link type="text/css" rel="stylesheet" href="jquery.rte.css" />
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery.rte.js"></script>
<script type="text/javascript" src="jquery.rte.tb.js"></script>
<script type="text/javascript" src="jquery.ocupload-1.1.4.js"></script>
<script type="text/javascript">
$(document).ready(function() {
var arr = $('.rte1').rte({
css: ['default.css'],
500,
height: 300,
controls_rte: rte_toolbar,
controls_html: html_toolbar
});
$("#save").click(function(){
var test=arr['test'].get_content();
alert(test);
})
});
</script>
</head>
<body>
<textarea name="test" id="test" class="rte1"></textarea>
<input id="save" type="button" value="测试" />
</form>
</div>
</body>
</html>