<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=gb2312" />
<title>向编辑器插入指定 并设置编辑器中内容</title>
<script>
//向编辑器插入指定代码
function inserthtmltoeditor(codestr){
var oeditor = fckeditorapi.getinstance("content");
if (oeditor.editmode==fck_editmode_wysiwyg){
oeditor.inserthtml(codestr);
}else{
return false;
}
}
//设置编辑器中内容
function setcontents(codestr){
var oeditor = fckeditorapi.getinstance("content") ;
oeditor.sethtml(codestr) ;
}
</script>
</head>
<body>
</body>
</html>