var sFCKeditorToolbar = 'Default';
var sFCKeditorBasePath =" <%=request.getContextPath()%>"+ '/fckeditor/';
var sFCKeditorBaseHref = 'http://localhost:8080/test/';
var sFCKeditorSkinPath = " <%=request.getContextPath()%>"+'/fckeditor/editor/skins/office2003/';
Ext.form.FCKeditor = function(config){
Ext.form.FCKeditor.superclass.constructor.call(this, config);
this.FCKid=0;
this.MyisLoaded=false;
this.MyValue='';
};
Ext.extend(Ext.form.FCKeditor, Ext.form.TextArea, {
onRender : function(ct, position){
if(!this.el){
this.defaultAutoCreate = {
tag: "textarea",
style:"width:100px;height:60px;",
autocomplete: "off"
};
}
Ext.form.TextArea.superclass.onRender.call(this, ct, position);
if(this.grow){
this.textSizeEl = Ext.DomHelper.append(document.body, {
tag: "pre", cls: "x-form-grow-sizer"
});
if(this.preventScrollbars){
this.el.setStyle("overflow", "hidden");
}
this.el.setHeight(this.growMin);
}
if (this.FCKid==0) this.FCKid=get_FCKeditor_id_value()
setTimeout("loadFCKeditor('"+this.name+"');",100);
},
setValue : function(value){
this.MyValue=value;
if (this.FCKid==0) this.FCKid=get_FCKeditor_id_value()
FCKeditorSetValue(this.FCKid,this.name,value)
Ext.form.TextArea.superclass.setValue.apply(this,[value]);
},
getValue : function(){
if (this.MyisLoaded){
value=FCKeditorGetValue(this.name);
Ext.form.TextArea.superclass.setValue.apply(this,[value]);
return Ext.form.TextArea.superclass.getValue(this);
}else{
return this.MyValue;
}
},
getRawValue : function(){
if (this.MyisLoaded){
value=FCKeditorGetValue(this.name);
Ext.form.TextArea.superclass.setRawValue.apply(this,[value]);
return Ext.form.TextArea.superclass.getRawValue(this);
}else{
return this.MyValue;
}
}
});
Ext.reg('fckeditor', Ext.form.FCKeditor);
function loadFCKeditor(element){
//if (typeof(FCKeditorAPI)!="undefined"){
oFCKeditor = new FCKeditor(element);//************************就是这里报错**********************
oFCKeditor.ToolbarSet = sFCKeditorToolbar ;
oFCKeditor.Config['SkinPath'] = sFCKeditorSkinPath ;
oFCKeditor.Config['PreloadImages'] = sFCKeditorSkinPath + 'images/toolbar.start.gif' + ';' +
sFCKeditorSkinPath + 'images/toolbar.end.gif' + ';' +
sFCKeditorSkinPath + 'images/toolbar.bg.gif' + ';' +
sFCKeditorSkinPath + 'images/toolbar.buttonarrow.gif' ;
oFCKeditor.BasePath = sFCKeditorBasePath ;
oFCKeditor.Config['BaseHref'] = sFCKeditorBaseHref ;
oFCKeditor.Height = 100 ;
oFCKeditor.ReplaceTextarea() ;
//}
}
function FCKeditor_OnComplete(editorInstance){
Ext.getCmp(editorInstance.Name).MyisLoaded=true;
editorInstance.Events.AttachEvent('OnStatusChange', function(){
Ext.getCmp(editorInstance.Name).setValue();
})
}
var FCKeditor_value=new Array();
function FCKeditorSetValue(id,name,value){
if ((id!=undefined)&&(name!=undefined)){
if (value!=undefined) FCKeditor_value[id]=value;
else if (FCKeditor_value[id]==undefined) FCKeditor_value[id]='';
var oEditor = FCKeditorAPI.GetInstance(name) ;
if(oEditor!=undefined) oEditor.SetData(FCKeditor_value[id])
}
}
function FCKeditorGetValue(name){
if ((id!=undefined)&&(name!=undefined)){
var oEditor = FCKeditorAPI.GetInstance(name) ;
data='';
if(oEditor!=undefined) data=oEditor.GetData()
return data;
}
}
var FCKeditor_id_value;
function get_FCKeditor_id_value(){
if (!FCKeditor_id_value){
FCKeditor_id_value=0;
}
FCKeditor_id_value=FCKeditor_id_value+1;
return FCKeditor_id_value;
}
报错:
FCKeditor is not defined,
js我也加了啊: <script type="text/javascript" src="fckeditor/editor/fckeditor.js">
关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率

已采纳
ext2.0使用FCKeditor报异常
收起
- 写回答
- 好问题 0 提建议
- 关注问题
微信扫一扫
点击复制链接分享
- 邀请回答
- 编辑 收藏 删除 结题
- 收藏 举报
1条回答 默认 最新
- 关注
码龄 粉丝数 原力等级 --
- 被采纳
- 被点赞
- 采纳率
zhoujuan520 2009-12-11 22:22关注[quote]FCKeditor is not defined,
js我也加了啊: [/quote]路径正确与否? 试着下载这个js看能下载到不
本回答被题主选为最佳回答 , 对您是否有帮助呢? 本回答被专家选为最佳回答 , 对您是否有帮助呢? 本回答被题主和专家选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏举报微信扫一扫
点击复制链接分享
评论按下Enter换行,Ctrl+Enter发表内容
报告相同问题?
提交
- 2018-03-14 11:10love666666shen的博客 PS:这个被很多人使用的项目实际有不少bug,推荐使用上面的android-pulltorefresh DropDownListView 下拉刷新及滑动到底部加载更多ListView 项目地址: https://github.com/Trinea/AndroidCommon Demo地址: ...
- 2014-01-09 17:35韩曙亮的博客 Google plus、Google Now卡片式进入、小米系统中应用商店、联系人、游戏中心、音乐、文件管理器的ListView、Ultimate、Light Flow Lite、...Super BART、DK FlashCards、Counter Plus、Voorlees Verhaaltjes 2.0...
- 2024-03-23 13:45HACKNOE的博客 使用:终端输入以下命令执行即可 masscan 192.33.6.145 -p1-65535 --rate 1000 -oL ports # ports=$(cat ports | awk -F " " ‘{print $3}’ | sort -n | tr ‘\n’ ‘,’ | sed ‘s/,$//’ | sed ‘s/^,//’) # ...
- 2022-03-24 03:09入狱计划进度50%的博客 // 判断上传文件类型是否允许上传 if(allow_ext.indexOf(ext_name) == -1){ var errMsg = "该文件不允许上传,请上传" + allow_ext + "类型的文件,当前文件类型为:" + ext_name; alert(errMsg); ...
- 2020-10-01 22:07大余xiyou的博客 这里使用的技术仅用于学习教育目的,如果列出的技术用于其他任何目标,我概不负责。 我必须再重申一遍:务必不要做未授权测试!不要未经授权在真实网络环境中复现任何本书中描述的攻击。即使是出于好奇而不是恶意,...
- 2020-09-25 22:30大余xiyou的博客 这里使用的技术仅用于学习教育目的,如果列出的技术用于其他任何目标,我概不负责。 我必须再重申一遍:务必不要做未授权测试!不要未经授权在真实网络环境中复现任何本书中描述的攻击。即使是出于好奇而不是恶意,...
- 2020-09-22 23:52大余xiyou的博客 这里使用的技术仅用于学习教育目的,如果列出的技术用于其他任何目标,我概不负责。 我必须再重申一遍:务必不要做未授权测试!不要未经授权在真实网络环境中复现任何本书中描述的攻击。即使是出于好奇而不是恶意,...
- 2020-09-28 20:41大余xiyou的博客 这里使用的技术仅用于学习教育目的,如果列出的技术用于其他任何目标,我概不负责。 我必须再重申一遍:务必不要做未授权测试!不要未经授权在真实网络环境中复现任何本书中描述的攻击。即使是出于好奇而不是恶意,...
- 2020-12-05 19:18weixin_39623244的博客 前端绕过 文件解析规则绕过 Windows环境特性绕过 文件名大小写绕过 双写绕过 点空格绕过 文件头绕过 条件竞争绕过 ......</code></pre></div><p>在以下的文章介绍中,将采取其中的几种常见的绕过形式做演示。</p><h2...
- 2020-02-26 22:33hongrisec的博客 此种验证形式在很多网站、CMS都有使用,只在前端利用JS来做效验,采用禁用JS上传、抓包上传都可以绕过此处限制。此处采用抓包演示。 点击上传文件,选择已经改成“.jpg”后缀的后门文件。修改burp中的文件后缀信息...
- 2019-09-12 18:27chenghun3345的博客 类似微信中查看聊天记录图片时可双击放大,并且放大情况下能正常左右滑动到前后图片 Salvage view 带View缓存的Viewpager PagerAdapter,很方便使用 项目地址:https://github.com/JakeWharton/salvage 五、...
- 2019-09-27 21:37banran9851的博客 超快的css-selector引擎-kquery-2.0 语法着色-Prism-JS DPDateExtension CouchDB-jQuery-plugin accounting.js jQuery-Virtual-DOM-Events-Plugin webGL-渲染器-Pixi.js 文本文档转换工具-A9text ...
- 2019-05-22 11:53零度anngle的博客 以EXT为表现层基础实现的一套企业应用开发框架,很强大 http://code.google.com/p/g4-xiongchun/downloads/list 29. XBlink 实现基于XML的对象序列化和反序列化工具,不以来第三方jar包,据说速度...
- 2019-02-26 17:08mic2019的博客 以EXT为表现层基础实现的一套企业应用开发框架,很强大 http://code.google.com/p/g4-xiongchun/downloads/list XBlink 实现基于XML的对象序列化和反序列化工具,不以来第三方jar包,据说速度不错,未来...
- 2018-12-05 14:43java小菜鸟112的博客 以EXT为表现层基础实现的一套企业应用开发框架,很强大 http://code.google.com/p/g4-xiongchun/downloads/list 29. XBlink 实现基于XML的对象序列化和反序列化工具,不以来第三方jar包,据说速度...
- 2018-12-01 19:51潜行者__的博客 主要使用技术 OpenFire Spark Smack Tinder Whack XIFF TWaver 一款专注于电力、金融、通信行业的图形化支持开发库,非常强大 至于是不是免费没仔细研究呢 非常棒的 TWaver 社区 http://twaver.servasoft.com/ 里面...
- 2016-11-02 10:58Eminem1147的博客 PS:这个被很多人使用的项目实际有不少bug,推荐使用上面的android-pulltorefresh DropDownListView 下拉刷新及滑动到底部加载更多ListView 项目地址: https://github.com/Trinea/AndroidCommon Demo...
- 2018-04-18 17:57lkp101824的博客 以EXT为表现层基础实现的一套企业应用开发框架,很强大 http://code.google.com/p/g4-xiongchun/downloads/list 29. XBlink 实现基于XML的对象序列化和反序列化工具,不以来第三方jar包,...
- 没有解决我的问题, 去提问