Tag: FCKeditor预览模式: 普通 | 列表

基于FCKeditor扩展‘自动保存草稿’功能

<script>
/* 每隔30秒将文章保存草稿 */
function copyContentPer(i) {
try {
if (i>0) {
//将FCK内容更新到输入框 (A1)
var oEditor = FCKeditorAPI.GetInstance('BlogContent');
oEditor.UpdateLinkedField();

//关于AJAX部分的解决可参考: (A2)(不关心则略过)
new Ajax.Updater('reBlogId','/AJAX_PostBlog.php?BlogId='+$('reBlogId').innerHTML , { method: 'post',parameters: $('CreateBlog').serialize(true)});
}
//启用定时器 (30秒)
funcTimer("copyContentPer(1)",30000);
} catch(e) {}
}

查看更多...

Tags: FCKeditor 自动保存

分类:ASP | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 823