数码资讯
Javascript的fckeditor编辑器的价值和分配的实现代码
选购提示
关注价格、性能、续航、售后和真实使用场景,理性比较后再下单。
获取编辑器中的HTML内容
复制代码代码如下所示:
功能geteditorhtmlcontents(editorname)
{
无功oeditor = fckeditorapi.getinstance(editorname);
返回(oeditor.getxhtml(真正的));
}
在编辑器中获取文本内容
复制代码代码如下所示:
功能geteditortextcontents(editorname)
{
无功oeditor = fckeditorapi.getinstance(editorname);
Return (oEditor.EditorDocument.body.innerText);
}
在编辑器中设置内容
复制代码代码如下所示:
功能seteditorcontents(editorname,contentstr)
{
无功oeditor = fckeditorapi.getinstance(editorname);
OEditor.SetHTML(contentstr);
}
FCKeditor插件开发
复制代码代码如下所示:
功能geteditorhtmlcontents(editorname)
{
无功oeditor = fckeditorapi.getinstance(editorname);
返回(oeditor.getxhtml(真正的));
}
在编辑器中获取文本内容
复制代码代码如下所示:
功能geteditortextcontents(editorname)
{
无功oeditor = fckeditorapi.getinstance(editorname);
Return (oEditor.EditorDocument.body.innerText);
}
在编辑器中设置内容
复制代码代码如下所示:
功能seteditorcontents(editorname,contentstr)
{
无功oeditor = fckeditorapi.getinstance(editorname);
OEditor.SetHTML(contentstr);
}
FCKeditor插件开发
声明:本文内容用于数码产品信息整理与选购参考,具体价格、库存、售后政策以官方渠道和电商页面实时信息为准。