参考文档:http://kindeditor.net/doc3.php
-
editor = K.create( 中增加参数 afterBlur ,让他失去焦点时同步内容
-
同步内容.
afterBlur:function(e){
//html = editor.html('gonggao');
//console.log(html);
editor.sync('gonggao');
html = document.getElementById('gonggao').value;
console.log(html);
- ajax提交时,会自动获得更新后的编辑内容。