这是我写的js 中的代码
window.onload = function()
{
var sBasePath = "../fckeditor/" ;
//alert(sBasePath);//路径
var oFCKeditor = new FCKeditor( 'usersField' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ReplaceTextarea() ;
}
页面上的代码
<textarea name="usersField" id="usersField" rows="10" cols="80"
style="width: 100%; height: 200px""></textarea>
在线编辑器已经替换了textarea ,现在我想取出,写入线编辑器上的文字。。请教大哥们我该怎么取,给个完整的代码谢了。
window.onload = function()
{
var sBasePath = "../fckeditor/" ;
//alert(sBasePath);//路径
var oFCKeditor = new FCKeditor( 'usersField' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.ReplaceTextarea() ;
}
页面上的代码
<textarea name="usersField" id="usersField" rows="10" cols="80"
style="width: 100%; height: 200px""></textarea>
在线编辑器已经替换了textarea ,现在我想取出,写入线编辑器上的文字。。请教大哥们我该怎么取,给个完整的代码谢了。
http://blog.csdn.net/lihan6415151528/archive/2008/10/19/3094793.aspx<script language="javascript">
<!--
function checkForm(){ var Content =FCKeditorAPI.GetInstance("content").GetXHTML();
if(Content==null||Content=="")
{
alert('内容不能为空');
return(false);
form1.EditorDefault.focus();
}
return true;
}
-->
</script>