62,041
社区成员
发帖
与我相关
我的任务
分享
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="static/js/jquery-1.4.1.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<div>
<input name="fckContent" type="hidden" id="fckContent" runat="server" />
<input type="hidden" id="fckContent___Config" value="" />
<iframe id="fckContent___Frame" name="fckContent___Frame" src="FCKeditor/editor/fckeditor.html?InstanceName=fckContent&Toolbar=cms"
width="700px" height="360px" frameborder="no" scrolling="no"></iframe>
</div>
<div>
<input id="Button1" type="button" value="button" onclick="return Button1_onclick()" />
</div>
</div>
</form>
<script language="javascript" type="text/javascript">
// <![CDATA[
$(document).ready(function () {
var oEditor = FCKeditorAPI.GetInstance('fckContent');
var str = oEditor.GetXHTML();
alert(str);
});
function Button1_onclick() {
var oEditor = FCKeditorAPI.GetInstance('fckContent');
var str = oEditor.GetXHTML();
alert(str);
}
// ]]>
</script>
</body>
</html>