zoukankan
html css js c++ java
FCKEditor的赋值和取值操作
1、获取编辑器中HTML内容
function
getEditorHTMLContents(EditorName)
{
var
oEditor
=
FCKeditorAPI.GetInstance(EditorName);
return
(oEditor.GetXHTML(
true
));
}
2、获取编辑器中文字内容(在博客发布时获取无html代码摘要使用)
function
getEditorTextContents(EditorName)
{
var
oEditor
=
FCKeditorAPI.GetInstance(EditorName);
return
(oEditor.EditorDocument.body.innerText);
}
3、设置编辑器中内容
function
SetEditorContents(EditorName, ContentStr)
{
var
oEditor
=
FCKeditorAPI.GetInstance(EditorName) ;
oEditor.SetHTML(ContentStr) ;
}
查看全文
相关阅读:
物理层和数据链路层
Python :Dive Into Python 中文版 读后感_第五章__类与对象
关于路由器的2种接法
关于设计模式的一些理解和感悟
C# 字符串加密
Sql server 查询锁表和接锁表
关于中文参数编码的一些文章推荐
写与悟
http 返回的状态码以及含义
js 操作<input type="hidden" runnat="server" id="month">服务器控件
原文地址:https://www.cnblogs.com/Byrd/p/2000791.html
最新文章
微信公众平台开发——为何不能在网页调用微信jsapi?
select标签模拟placeholder属性与一般操作(最重要的是ios某一项被选中的兼容)
元素的高度(基于vue)
防止用户恶意输入
感觉好用的数组方法
vuerouter2.0 初学动态赋值
五星评价
使用Python抓取网页图片
使用mingw32 在windows python26 下编译安装4suitexml
使用suds+pythonntlm访问SharePoint Web Service (完美解决Windows的NTLM验证问题)
热门文章
成功使用mingw32和vc2005编译boost.python (v1.39)
python操作sharepoint对象模型
初进博客园 都是老师
个人查阅资料Sql语句
定时备份数据库到其他服务器
类与类的关系
Python :Dive Into Python 中文版 读后感_第六章__异常捕捉
python参数 *args 和 **kwargs
计算机网络(网络层,运输层和应用层的一些tips)
计算机网络 概述
Copyright © 2011-2022 走看看