迎国庆:js获取和设置FCK编辑器的内容
来源:百度文库 编辑:九乡新闻网 时间:2024/04/29 19:54:39
// 获取编辑器中HTML内容
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) ;
}
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) ;
}
js获取和设置FCK编辑器的内容
js获取浏览器高度和宽度值(多浏览器)
js获取下拉列表选中项的值和文本(select)以及获取单选按钮(radio)组的值和修改选中项
js 获取下拉菜单的值传给文本框a
获取和设置c# 应用程序目录
VI编辑器自定义设置
用Excel获取网页内容的方法 -
获取和设置MasterPage 中控件的值 - 叶翔 - 博客园
义务教育阶段:信息技术内容设置和选择原则
asp.net中使用fck的方法
JS获取屏幕,浏览器,网页高度宽度
javascript监听并获取用户复制的网页文本内容
快速获取、提取、保存PPT的文字内容
教你省时省力快速获取PPT的文字内容
同花顺公式编写第二课:公式编辑器的内容与作用
HTML在线编辑器的调用方法和使用方法详解
js-window对象的方法和属性资料
js获取浏览器基本信息:document.body.clientWidth/clientHeight/scrollWidth/scrollTop。。
音频素材的获取和处理
vi编辑器的使用方法
JS获取浏览器窗口大小 获取屏幕,浏览器,网页高度宽度 - ie421.NET - 博客园
建筑施工企业会计科目的设置及核算内容
获取指定网站指定内容的简单方式==index of 详细使用方法
在php.ini中设置表单上传文件的大小,以及获取设置的值的方法