FCKeditor编辑器
来源:互联网 发布:多系统引导软件 编辑:程序博客网 时间:2024/04/30 15:47
// 获取编辑器中HTML内容
function getEditorHtmlContents(name,isClearP){
//获取多文本编辑框的对象
var oEditor = FCKeditorAPI.GetInstance(name);
//获取用户输入的内容
var acontent = oEditor.GetXHTML();
if(isClearP){
//过滤掉多文本编辑框增加的<p></p>
acontent=acontent.substr(3,acontent.length-7);
}
return acontent;
}
// 获取编辑器中文字内容
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) ;
}
function getEditorHtmlContents(name,isClearP){
//获取多文本编辑框的对象
var oEditor = FCKeditorAPI.GetInstance(name);
//获取用户输入的内容
var acontent = oEditor.GetXHTML();
if(isClearP){
//过滤掉多文本编辑框增加的<p></p>
acontent=acontent.substr(3,acontent.length-7);
}
return acontent;
}
// 获取编辑器中文字内容
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) ;
}
- FCKeditor编辑器
- FCKeditor编辑器
- FCKeditor编辑器使用
- 在线编辑器FCKeditor
- FCKEDITOR中文使用说明 编辑器
- FCKEDITOR中文使用说明 编辑器
- FCKeditor编辑器使用
- FCKeditor编辑器使用
- FCKeditor在线编辑器配置
- FCKeditor编辑器的使用
- web在线编辑器FCKEditor
- FCKeditor在线编辑器
- FCKeditor在线编辑器(Java)
- FCKEditor编辑器使用集锦
- FCKEDITOR在线编辑器
- 文本编辑器FCKeditor
- 网页文本编辑器(FCKEditor)
- FCKeditor编辑器的应用
- 使用debian配置网关服务器及内网连入IPV6
- struts2学习笔记(3) 文件上传
- js 访问历史
- Android中的Log.v(), Log.d(),Log.i(),Log.w(),Log.e()
- 老人购买双色球成瘾 每周60元终中67万
- FCKeditor编辑器
- Quartz 触发器(SimpleTrigger&CronTrigger )配置说明
- 验证姓名的合法性
- “密集撒网法”中出双色球大奖
- 关于eclipse运行java程序内存溢出的解决方法
- screen命令使用方法
- Android 进程和线程(一)
- 中彩低概率能否被改变
- 一起学习wordpress