js获取,设置fck编辑器值
DIV+CSS 2009/8/13 8:32:37 点击:不统计
关键词:js获取,设置fck编辑器值,javascript 设置fckeditor 值,javascript 获取fckeditor值,FCK编辑器值的设置与获取
首先获取 fck编辑器的的对象
var oEditor=FCKeditorAPI.GetInstance('content');
这里面的content 是编辑器的编辑对象,设置内容的.
接下来用对象的方法来获取fckeditor的值
var content=oEditor.GetXHTML(true);
这里的content 就是获取过来的值.
最后设置fckeditor的值
oEditor.SetHTML(content);
这里是设置了fckeditor的值.
·上一篇:css的float和clear属性详解 >> ·下一篇:Glow 滤镜 >>