您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

jquery 怎么获取fckeditor的内容

2025/10/16 15:30:02发布14次查看
jquery 如何获取fckeditor的内容?
我用
jscript codevar content = $(#fckeditor1).val()
获取不到
查看过源文件,editor的id是fckeditor
求赐教
------解决方案--------------------
function geteditorhtmlcontents(editorname)
{
var oeditor = fckeditorapi.getinstance(editorname);
return(oeditor.getxhtml(true));
}
//获取编辑器中文字内容
function geteditortextcontents(editorname)
{
var oeditor = fckeditorapi.getinstance(editorname);
return(oeditor.editordocument.body.innertext);
}
//设置编辑器中内容
function seteditorcontents(editorname, contentstr)
{
var oeditor = fckeditorapi.getinstance(editorname) ;
oeditor.sethtml(contentstr) ;
}
……
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product