dever 6 年 前
コミット
03e27f28b1
2 ファイル変更18 行追加6 行削除
  1. 1 1
      assets/lib/kindeditor/kindeditor-all-min.js
  2. 17 5
      assets/lib/manage/main.js

+ 1 - 1
assets/lib/kindeditor/kindeditor-all-min.js

@@ -260,7 +260,7 @@ K.options = {
 	minWidth : 650,
 	minHeight : 100,
 	minChangeSize : 50,
-	zIndex : 811213,
+	zIndex : 99991015,
 	items : [
 		'source', '|', 'undo', 'redo', '|', 'preview', 'print', 'template', 'code', 'cut', 'copy', 'paste',
 		'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',

+ 17 - 5
assets/lib/manage/main.js

@@ -5,7 +5,7 @@ var editors_index = [];
 var tables = [];
 var select = '';
 var submitButton = '';
-
+var editorWidth = 0;
 
 
 String.prototype.replaceAll = function(reallyDo, replaceWith, ignoreCase) {  
@@ -36,8 +36,13 @@ $(document).ready(function()
 	//init();
 });
 
-function init()
+function init(ew)
 {
+	if (ew) {
+		editorWidth = ew;
+	} else {
+		editorWidth = 0;
+	}
 	editors = [];
 	editors_index = [];
 	initEditor();
@@ -360,6 +365,11 @@ function loadEditorParam(e)
 		*/
 	}
 
+	if (editorWidth > 0) {
+		param.width = editorWidth + 'px';
+		param.minWidth = editorWidth + 'px';
+	}
+
 	return param;
 }
 
@@ -1720,7 +1730,8 @@ function showAlert(msg, func, title)
 	};
 
 	if (type == 1) {
-		config.area = '500px';
+		//config.type = 1;
+		config.area = '800px';
 	}
 
 	if (func) {
@@ -1729,7 +1740,7 @@ function showAlert(msg, func, title)
 			func();
 		};
 	}
-	layer.open(config);
+	var index = layer.open(config);
 }
 
 function fastEdit(e, url, title, col)
@@ -1747,6 +1758,7 @@ function fastEdit(e, url, title, col)
 		var html = $(t).find('form').prop("outerHTML");
 		var valid = $(t).find('#valid').prop("outerHTML");
 		html = html + valid;
+		html = html.replace('left: 740px', 'left:583px;')
 		showAlert(html, func, title);
 		$('#update_button').hide();
 		layui.use(['formSelects'], function(){
@@ -1757,7 +1769,7 @@ function fastEdit(e, url, title, col)
 				}
 			})
 		  });
-		
+		init(560);
 	});
 }