Redactor 在线HTML编辑器 项目简介
Redactor 是一个 jQuery 的插件,实现在线所见即所得的 HTML 编辑器。界面简洁,加载速度快。不过不支持 IE6 浏览器,如果你不需要考虑 IE6 不妨试试。使用很简单:<!DOCTYPE html>
<html>
<head>
<title>Redactor</title>
<meta charset="utf-8">
<script src="/js/jquery-1.7.min.js"></script>
<link rel="stylesheet" href="/js/redactor/css/redactor.css" />
<script src="/js/redactor/redactor.js"></script>
<script type="text/javascript">
$(document).ready(
function()
{
$('#redactor_content').redactor();
}
);
</script>
</head>
<body>
<textarea id="redactor_content" name="content" style="height: 560px;"></textarea>
</body>
</html>
<html>
<head>
<title>Redactor</title>
<meta charset="utf-8">
<script src="/js/jquery-1.7.min.js"></script>
<link rel="stylesheet" href="/js/redactor/css/redactor.css" />
<script src="/js/redactor/redactor.js"></script>
<script type="text/javascript">
$(document).ready(
function()
{
$('#redactor_content').redactor();
}
);
</script>
</head>
<body>
<textarea id="redactor_content" name="content" style="height: 560px;"></textarea>
</body>
</html>