第一个页面
<form id="form1" name="form1" method="post" action="huode.php">
<script charset="utf-8" src="tool/editor/kindeditor.js"></script>
<script charset="utf-8" src="tool/editor/lang/zh_CN.js"></script>
<script>
KindEditor.ready(function(K) {
window.editor = K.create('#editor_id');
});
</script>
<textarea id="editor_id" name="content" style="width:700px;height:300px;">
初始内容
</textarea>
<input type="submit" name="button" id="button" value="提交" />
</form>
获取值的页面
<script>
// 取得HTML内容
html = editor.html();
// 同步数据后可以直接取得textarea的value
editor.sync();
html = document.getElementById('editor_id').value; // 原生API
html = K('#editor_id').val(); // KindEditor Node API
html = $('#editor_id').val(); // jQuery
// 设置HTML内容
editor.html('HTML内容');
document.write(html);
document.write('<p>');
document.write(editor.html);
</script>