重置 ckeditor清空内容

转载自:http://blog.csdn.net/woshirongshaolin/article/details/8239407

<script type="text/javascript" >
$(document).ready(function(){
$("div").addClass("input_line");
$("#reset").click(function(){
CKEDITOR.instances.account.setData(' ');//蓝色为控件名称
});

});

</script>


<script type="text/javascript" >

var editor = CKEDITOR.replace('account');

</script>

posted @ 2015-10-10 14:53  花语苑  阅读(808)  评论(0编辑  收藏  举报