向编辑器插入指定 并设置编辑器中内容

<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" ""><html xmlns=""><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>

有人要进来,有一些人不得不离开。

向编辑器插入指定 并设置编辑器中内容

相关文章:

你感兴趣的文章:

标签云: