1 / 21
文档名称:

[转]Extjs 扩展Htmleditor,支持 图片上传 文件上传 插入flash 插入....doc

格式:doc   大小:15KB   页数:21页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

[转]Extjs 扩展Htmleditor,支持 图片上传 文件上传 插入flash 插入....doc

上传人:黛玉文档 2022/1/20 文件大小:15 KB

下载得到文件列表

[转]Extjs 扩展Htmleditor,支持 图片上传 文件上传 插入flash 插入....doc

相关文档

文档介绍

文档介绍:[转]Extjs 扩展Htmleditor,支持 图片上传 文件上传 插入flash 插入...
,使用方法,直接复制,();
},
failure : function(form, action) {
();
if ( == )
('警告',
'上传失败,仅支持jpg、bmp、gif、png格式的图片');

}

});
}
}, {
text : '关闭',
type : 'submit',
handler : function() {
(this);
}
}]
})
var win = new ({
title : "上传图片",
id : 'picwin',
width : 400,
height : 120,
modal : true,
border : false,
iconCls:'icon-uploadpic',
layout : "fit",
items : imgform
});
();

},//上传图片的扩展
addFile : function() {
var editor = this;
var fileform = new ({
region : 'center',
labelWidth : 55,
frame : true,
bodyStyle : 'padding:5px 5px 0',
autoScroll : true,
border : false,
fileUpload : true,
items : [{
xtype : 'textfield',
fieldLabel : '选择文件',
name : 'userfile_F',
id : 'userfile_F',
inputType : 'file',
allowBlank : false,
blankText : '文件不能为空',
height : 25,
anchor : '98%'
}],
buttons : [{
text : '上传',
type : 'submit',
handler : function() {
var furl="";//文件物理地址
var fname="";//文件名称
furl=('userfile_F').getValue();
var type=(-3).toLowerCase();
if (furl==""||furl==null) {return;}
if(type!='doc'&&type!='xls'){
alert('仅支持上传doc、xls格式的文件!');
return;
}
fname=(("\\")+1);
({
url : '/',
waitMsg : '正在上传......',
waitTitle : '请等待',
method : 'POST',
success : function