全部博文(247)
分类: Web开发
2013-07-23 15:19:48
具体方法
首先找到dialogs/image/中的image.html
删除代码
然后找到image.js中的
if ( id == “imgManager” ) {
list.style.display = “”;
//已经初始化过时不再重复提交请求
if ( !list.children.length ) {
ajax.( editor.options.imageManagerUrl, {
timeout:100000,
action:”get”,
onsuccess:function ( xhr ) {
//去除空格
var tmp = utils.trim(xhr.responseText),
imageUrls = !tmp ? [] : tmp.split( “ue_separate_ue” ),
length = imageUrls.length;
g( “imageList” ).innerHTML = !length ? “ ”+lang.noUploadImage : “”;
for ( var k = 0, ci; ci = imageUrls[k++]; ) {
var img = document.createElement( “img” );
var div = document.createElement( “div” );
div.appendChild( img );
div.style.display = “none”;
g( “imageList” ).appendChild( div );
img.onclick = function () {
changeSelected( this );
};
img.onload = function () {
this.parentNode.style.display = “”;
var w = this.width, h = this.height;
scale( this, 100, 120, 80 );
this.title = lang.toggleSelect + w + “X” + h;
};
img.setAttribute( k < 35 ? “src” : “lazy_src”, editor.options.imageManagerPath + ci.replace(/s+|s+/ig,”") );
img.setAttribute( “data_ue_src”, editor.options.imageManagerPath + ci.replace(/s+|s+/ig,”") );
}
},
onerror:function () {
g( “imageList” ).innerHTML = lang.imageLoadError;
}
} );
}
}
删除即可!