Browse Source

编辑器修改

xuchunyang 8 years ago
parent
commit
476bfccec0

+ 3 - 2
css/webuploader/webuploader.css

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


+ 3 - 3
js/information.js

@ -2026,10 +2026,10 @@ $("#honorShow").on("click", ".infor-save",function () {
2026 2026
	                 	add+='<div class="shareopeart"></div>'
2027 2027
	             		add+='</div>'	             
2028 2028
	             		add+='<p class="restit">资源名称:<span class="presou">'+ data.data[i].resourceName+'</span></p>'
2029
	             		if(data.data[i].descp==undefined){
2030
	             			data.data[i].descp="";
2029
	             		if(data.data[i].supportedServices==undefined){
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 2033
	        			add+='</div>'
2034 2034
	        			$(".sharescrollbox").append(add);	
2035 2035


+ 10 - 9
js/newsciresource.js

@ -98,7 +98,6 @@ $(function(){
98 98
				$(".limitBox").removeClass("limitBox");
99 99
		        $(".limitwords").removeClass("limitwords");
100 100
		        $(".limitwordbox").removeClass("limitwordbox");
101
				
102 101
				$(".respublisher").css("display","none");
103 102
				$(".stateinfor span").text("资源发布中");
104 103
				var resourceID=$(this).attr("resourceId");
@ -126,7 +125,7 @@ $(function(){
126 125
					$.ajax({		
127 126
						"url":"/ajax/resource/"+resourceID,
128 127
						"type":"get",
129
						"async": true,
128
						"async":false,
130 129
						"success":function(info){
131 130
							if(info.success)
132 131
								{
@ -139,6 +138,10 @@ $(function(){
139 138
								industryShow(info.data.industry,"industryList","deleteIndustry");	
140 139
							    ue.ready(function() {
141 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 147
								$("#professor").text(name);
@ -157,14 +160,12 @@ $(function(){
157 160
									 			'</div>'
158 161
									            )
159 162
								}
160
								
161
								 $("#fileList").append($liMages);     
162
								
163
								}
164
								else
165
								{
163
								   $("#fileList").append($liMages);     
164
								   $(".upbox").css({"marginTop":"0px"});
165
								   
166
								 }else{
166 167
									$.MsgBox.Alert('message',"系统异常!");
167
								}
168
								 }
168 169
						},
169 170
						"error":function(){$.MsgBox.Alert('message','failed')}
170 171
					});

+ 8 - 5
js/popup.js

@ -39,12 +39,12 @@ function ResourceInfo() {
39 39
		//PopHtml += '<div class="resouimg" >';
40 40
		//PopHtml += '<span class="resouup"><input type="file" name="file" id="resouup" >上传资源图片</span>';
41 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 43
		PopHtml += '<div id="fileList" class="uploader-list"></div>';
44 44
		PopHtml += '<div id="filePicker">选择图片</div></div>';
45 45
		PopHtml += '<span class="resouimgmsg">尺寸240*240,大小在5M以内,<br/>JPG、PNG格式</span>';
46
		PopHtml += '</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>';
46
		PopHtml += '</div></div></div></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,7 +188,7 @@ function ResourceInfo() {
188 188
			// 选完文件后,是否自动上传。
189 189
		    auto: true,
190 190
		    // 添加的文件数量
191
		    fileNumLimit: 1,
191
		    //fileNumLimit: 1,
192 192
		    // swf文件路径
193 193
		    swf: '../js/webuploader/Uploader.swf',
194 194
		    // 文件接收服务端。
@ -223,6 +223,8 @@ function ResourceInfo() {
223 223
		    var $list = $('#fileList');
224 224
		    $list.empty("");
225 225
		    $list.append( $li );
226
		    $(".upbox").css({"marginTop":"0px"});
227
		  
226 228

227 229
		    // 创建缩略图
228 230
		    // 如果为非图片文件,可以不用调用此方法。
@ -256,7 +258,8 @@ function ResourceInfo() {
256 258
			cacheImageKey =data.data[0].cacheKey;
257 259
			console.log(cacheImageKey);
258 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 +1,19 @@
1 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,6 +24528,7 @@ UE.plugin.register('simpleupload', function (){
24528 24528
                            loader.setAttribute('_src', link);
24529 24529
                            loader.setAttribute('title', json.title || '');
24530 24530
                            loader.setAttribute('alt', json.original || '');
24531
                            loader.setAttribute('style','max-width:500px');//这里就是控制编辑器里图片的宽度
24531 24532
                            loader.removeAttribute('id');
24532 24533
                            domUtils.removeClasses(loader, 'loadingclass');
24533 24534
                        } else {

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

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