Browse Source

编辑器修改

xuchunyang 8 years ago
parent
commit
476bfccec0

+ 3 - 2
css/webuploader/webuploader.css

52
.file-item {
52
.file-item {
53
    float: left;
53
    float: left;
54
    position: relative;
54
    position: relative;
55
    margin: 0 20px 20px 0;
55
    margin: 0 20px 0px 0;
56
    padding: 4px;
56
    padding: 4px;
57
}
57
}
58
.file-item .error {
58
.file-item .error {
117
    overflow: hidden;
117
    overflow: hidden;
118
    width: 0;
118
    width: 0;
119
    height: 100%;
119
    height: 100%;
120
    background: #ff9900  url(../images/progress.png) repeat-x;
120
    background: #ff9900;
121
    -webit-transition: width 200ms linear;
121
    -webit-transition: width 200ms linear;
122
    -moz-transition: width 200ms linear;
122
    -moz-transition: width 200ms linear;
123
    -o-transition: width 200ms linear;
123
    -o-transition: width 200ms linear;
160
  top: -4px;
160
  top: -4px;
161
  right: 15px;
161
  right: 15px;
162
}}
162
}}
163


+ 3 - 3
js/information.js

2026
	                 	add+='<div class="shareopeart"></div>'
2026
	                 	add+='<div class="shareopeart"></div>'
2027
	             		add+='</div>'	             
2027
	             		add+='</div>'	             
2028
	             		add+='<p class="restit">资源名称:<span class="presou">'+ data.data[i].resourceName+'</span></p>'
2028
	             		add+='<p class="restit">资源名称:<span class="presou">'+ data.data[i].resourceName+'</span></p>'
2029
	             		if(data.data[i].descp==undefined){
2029
	             		if(data.data[i].supportedServices==undefined){
2030
	             			data.data[i].descp="";
2030
	             			data.data[i].supportedServices="";
2031
	             		}
2031
	             		}
2032
	             		add+='<p class="briefinfor">简介:'+data.data[i].descp+'</p>'
2032
	             		add+='<p class="briefinfor">应用用途:'+data.data[i].supportedServices+'</p>'
2033
	        			add+='</div>'
2033
	        			add+='</div>'
2034
	        			$(".sharescrollbox").append(add);	
2034
	        			$(".sharescrollbox").append(add);	
2035

2035


+ 10 - 9
js/newsciresource.js

98
				$(".limitBox").removeClass("limitBox");
98
				$(".limitBox").removeClass("limitBox");
99
		        $(".limitwords").removeClass("limitwords");
99
		        $(".limitwords").removeClass("limitwords");
100
		        $(".limitwordbox").removeClass("limitwordbox");
100
		        $(".limitwordbox").removeClass("limitwordbox");
101
				
102
				$(".respublisher").css("display","none");
101
				$(".respublisher").css("display","none");
103
				$(".stateinfor span").text("资源发布中");
102
				$(".stateinfor span").text("资源发布中");
104
				var resourceID=$(this).attr("resourceId");
103
				var resourceID=$(this).attr("resourceId");
126
					$.ajax({		
125
					$.ajax({		
127
						"url":"/ajax/resource/"+resourceID,
126
						"url":"/ajax/resource/"+resourceID,
128
						"type":"get",
127
						"type":"get",
129
						"async": true,
128
						"async":false,
130
						"success":function(info){
129
						"success":function(info){
131
							if(info.success)
130
							if(info.success)
132
								{
131
								{
139
								industryShow(info.data.industry,"industryList","deleteIndustry");	
138
								industryShow(info.data.industry,"industryList","deleteIndustry");	
140
							    ue.ready(function() {
139
							    ue.ready(function() {
141
							        ue.setContent(info.data.descp);
140
							        ue.setContent(info.data.descp);
141
							        /*var html = ue.getContent();
142
									var jqueryobj=$(html);
143
									alert(html);
144
									jqueryobj.find("img").css({"width":"100%"});*/
142
							    });
145
							    });
143

146

144
								$("#professor").text(name);
147
								$("#professor").text(name);
157
									 			'</div>'
160
									 			'</div>'
158
									            )
161
									            )
159
								}
162
								}
160
								
163
								   $("#fileList").append($liMages);     
161
								 $("#fileList").append($liMages);     
164
								   $(".upbox").css({"marginTop":"0px"});
162
								
166
								 }else{
163
								}
164
								else
165
								{
166
									$.MsgBox.Alert('message',"系统异常!");
167
									$.MsgBox.Alert('message',"系统异常!");
167
								}
168
								 }
168
						},
169
						},
169
						"error":function(){$.MsgBox.Alert('message','failed')}
170
						"error":function(){$.MsgBox.Alert('message','failed')}
170
					});
171
					});

+ 8 - 5
js/popup.js

39
		//PopHtml += '<div class="resouimg" >';
39
		//PopHtml += '<div class="resouimg" >';
40
		//PopHtml += '<span class="resouup"><input type="file" name="file" id="resouup" >上传资源图片</span>';
40
		//PopHtml += '<span class="resouup"><input type="file" name="file" id="resouup" >上传资源图片</span>';
41
		//PopHtml += '<div class="resouimgshow"><img width="100%" height="100%" src="" class="resouImage" /></div></div>';
41
		//PopHtml += '<div class="resouimgshow"><img width="100%" height="100%" src="" class="resouImage" /></div></div>';
42
		PopHtml += '<div id="uploader" style="border-radius: 6px;">';
42
		PopHtml += '<div class="upbox" style="margin-top:60px"><div id="uploader" style="border-radius: 6px;">';
43
		PopHtml += '<div id="fileList" class="uploader-list"></div>';
43
		PopHtml += '<div id="fileList" class="uploader-list"></div>';
44
		PopHtml += '<div id="filePicker">选择图片</div></div>';
44
		PopHtml += '<div id="filePicker">选择图片</div></div>';
45
		PopHtml += '<span class="resouimgmsg">尺寸240*240,大小在5M以内,<br/>JPG、PNG格式</span>';
45
		PopHtml += '<span class="resouimgmsg">尺寸240*240,大小在5M以内,<br/>JPG、PNG格式</span>';
46
		PopHtml += '</div></div></div>';
46
		PopHtml += '</div></div></div></div>';
47
		PopHtml +='<div style="clear: both;padding:15px 0 10px 0;overflow: hidden;"><span class="resouinfotype" style="display: block;float: left;">详细描述</span><script id="editor" name="content" type="text/plain" style="width:550px; height:200px;float: left;margin-left: 30px;"></script></div>';
47
		PopHtml +='<div class="baimg" style="clear: both;padding:15px 0 10px 0;overflow: hidden;"><span class="resouinfotype" style="display: block;float: left;">详细描述</span><script id="editor" name="content" type="text/plain" style="width:550px; height:200px;float: left;margin-left: 30px;"></script></div>';
48
		/////////////资源图片上传 结束////////////////////
48
		/////////////资源图片上传 结束////////////////////
49
		
49
		
50
		//按钮盒子
50
		//按钮盒子
188
			// 选完文件后,是否自动上传。
188
			// 选完文件后,是否自动上传。
189
		    auto: true,
189
		    auto: true,
190
		    // 添加的文件数量
190
		    // 添加的文件数量
191
		    fileNumLimit: 1,
191
		    //fileNumLimit: 1,
192
		    // swf文件路径
192
		    // swf文件路径
193
		    swf: '../js/webuploader/Uploader.swf',
193
		    swf: '../js/webuploader/Uploader.swf',
194
		    // 文件接收服务端。
194
		    // 文件接收服务端。
223
		    var $list = $('#fileList');
223
		    var $list = $('#fileList');
224
		    $list.empty("");
224
		    $list.empty("");
225
		    $list.append( $li );
225
		    $list.append( $li );
226
		    $(".upbox").css({"marginTop":"0px"});
227
		  
226

228

227
		    // 创建缩略图
229
		    // 创建缩略图
228
		    // 如果为非图片文件,可以不用调用此方法。
230
		    // 如果为非图片文件,可以不用调用此方法。
256
			cacheImageKey =data.data[0].cacheKey;
258
			cacheImageKey =data.data[0].cacheKey;
257
			console.log(cacheImageKey);
259
			console.log(cacheImageKey);
258
		   // $( '#'+file.id ).addClass('upload-state-done');
260
		   // $( '#'+file.id ).addClass('upload-state-done');
259
			$("#filePicker").hide();
261
			//$("#filePicker").hide();
262
			
260
		});
263
		});
261

264

262
		
265
		

+ 18 - 0
js/ueditor/themes/iframe.css

1
/*可以在这里添加你自己的css*/
1
/*可以在这里添加你自己的css*/
2
img {
3
max-width: 100%; /*图片自适应宽度*/
4
}
5
body {
6
overflow-y: scroll !important;
7
}
8
.view {
9
word-break: break-all;
10
}
11
.vote_area {
12
display: block;
13
}
14
.vote_iframe {
15
background-color: transparent;
16
border: 0 none;
17
height: 100%;
18
}
19
#edui1_imagescale{display:none !important;} /*去除点击图片后出现的拉伸边框*/

+ 1 - 0
js/ueditor/ueditor.all.js

24528
                            loader.setAttribute('_src', link);
24528
                            loader.setAttribute('_src', link);
24529
                            loader.setAttribute('title', json.title || '');
24529
                            loader.setAttribute('title', json.title || '');
24530
                            loader.setAttribute('alt', json.original || '');
24530
                            loader.setAttribute('alt', json.original || '');
24531
                            loader.setAttribute('style','max-width:500px');//这里就是控制编辑器里图片的宽度
24531
                            loader.removeAttribute('id');
24532
                            loader.removeAttribute('id');
24532
                            domUtils.removeClasses(loader, 'loadingclass');
24533
                            domUtils.removeClasses(loader, 'loadingclass');
24533
                        } else {
24534
                        } else {

+ 1 - 1
js/ueditor/ueditor.config.js

257
257
258
        //elementPathEnabled
258
        //elementPathEnabled
259
        //是否启用元素路径,默认是显示
259
        //是否启用元素路径,默认是显示
260
        //,elementPathEnabled : true
260
        ,elementPathEnabled : false
261
261
262
        //wordCount
262
        //wordCount
263
        //,wordCount:true          //是否开启字数统计
263
        //,wordCount:true          //是否开启字数统计