62,269
社区成员
发帖
与我相关
我的任务
分享<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
<link rel="stylesheet" type="text/css" href="Ext/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="Ext/resources/css/xtheme-galdaka.css" />
<script type="text/javascript" src="Ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="Ext/ext-all.js"></script>
<script type="text/javascript" src="fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="extFckeditor.js"></script>
</head>
<body>
</body>
</html>Ext.onReady(function(){
function Msg()
{
alert(oFCKeditor.value);
}
var fckeditorFormPanel = new Ext.FormPanel({
labelWidth: 75,
url:'',
frame:true,
title: 'fckeditor Form',
bodyStyle:'padding:5px 5px 0',
width: 950,
height:450,
defaultType: 'textfield',
items: [{
xtype:'textarea',
fieldLabel:'编辑',
labelSeparator:':',
id:'code',
name:'code',
height:200,
width:300
}
],
buttons: [{
text: 'Save',
handler:Msg
},{
text: 'Cancel'
}]
});
fckeditorFormPanel.render(document.body);
/**
* 以下创建在线编辑器
*/
var oFCKeditor = new FCKeditor( 'code',800,350 ) ;
oFCKeditor.BasePath = "fckeditor/" ;
oFCKeditor.ToolbarSet = 'Default';
oFCKeditor.ReplaceTextarea() ;
});