| |
引用
BO-BLOG中的UBBEDITOR有一功能是自动保存,真是非常棒!在线编辑总是有很多问题出现,一个不上心就白忙半天啦。经过分析,发现用的是AJAX异步存储。它通过
document.getElementById('content').value ;

来读取数据,但是FCKEDITOR用的是TEXTAREA REPLACE,即在FCKeditor 中编辑的内容并不属于TEXTAREA“content”。
怎么办呢?于是,我去官网查了一下,还真找到了一个方法来解决:FCKeditor提供了JSAPI。看到了上面的图吗?成功啦。
读取content方法如下:
var oEditor = FCKeditorAPI.GetInstance('content');
var content = blogencode(oEditor.GetXHTML(true))
;


将修改好的autosave.js 保存至至editor/custom目录下。再相应修改editordef.php即可。
电脑手机 | 评论(0) | 引用(0) | 阅读(1226)
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]