ext 2.2 FCKeditor2.63 整合 问题 如何获取值

zyb1235 2008-12-01 12:44:40
<%@ 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>


extFckeditor.js
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() ;
});

ext 2.2 FCKeditor2.63 整合 问题 如何获取值
...全文
180 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
HDNGO 2008-12-01
  • 打赏
  • 举报
回复
http://www.cnblogs.com/zyh-nhy/archive/2008/06/26/1230423.html
liudanking 2008-12-01
  • 打赏
  • 举报
回复
用value何以获取值。另外你的问题不是很明确……
zyb1235 2008-12-01
  • 打赏
  • 举报
回复
高手们给个比较好的解决办法!
zyb1235 2008-12-01
  • 打赏
  • 举报
回复
Msg()调用返回的应该是弹出一个消息!可是返回的结果是“undefined”
zyb1235 2008-12-01
  • 打赏
  • 举报
回复
Msg()调用返回的应该是弹出一个消息!可是返回的结果是“undefined”

62,269

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧