文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > Spring Extjs FCKEditor的集成
侵权投诉

Spring Extjs FCKEditor的集成

Spring ExtJS FCKEditor的集成;有ExtJS如何添加FCKEditor的详细例子,并在IE6、IE7中测试过的,很好用。

Spring Extjs FCKEditor的集成 参考了extjs.com的论坛。

Ext.FCKeditor.js文件内容如下

var oFCKeditorOptions = { BasePath: 'fckeditor/',

Config: { BaseHref: 'doc.guandang.net',

SkinPath: '../../fckeditor/editor/skins/office2003/', CustomConfigurationsPath: '../../fckeditor/fckconfig.js', ProcessHTMLEntities: true, ProcessNumericEntities: false },

AllowQueryStringDebu: false,

ToolbarSet: 'XXX'

}; Ext.form.FCKeditor = function(config){

this.config = config;

Ext.form.FCKeditor.superclass.constructor.call(this, config); this.MyisLoaded = false;

this.MyValue = ''; this.fckInstance= undefined; // to avoid using FCKAPI, this is a reference to instance created on FCKeditor_OnComplete };

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); //Hide textarea to stop flashing up before FCKEditor renders. this.hideMode = "visibility"; // set hideMode to visibility, to retain height.

this.hidden = true; // hide textarea

if(this.grow){

this.textSizeEl = Ext.DomHelper.append(document.body, { tag: "pre", cls: "x-form-grow-sizer" });

第1页

你可能喜欢

热门文档

相关文档

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email