dever 7 years ago
parent
commit
a9b6f05884
2 changed files with 8 additions and 9 deletions
  1. 1 0
      assets/lib/kindeditor/kindeditor-all-min.js
  2. 7 9
      assets/lib/manage/main.js

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

@@ -667,6 +667,7 @@ function _formatCss(css) {
 	return str;
 }
 function _formatUrl(url, mode, host, pathname) {
+	return url;
 	mode = _undef(mode, '').toLowerCase();
 	if (url.substr(0, 5) != 'data:') {
 		url = url.replace(/([^:])\/\//g, '$1/');

+ 7 - 9
assets/lib/manage/main.js

@@ -259,16 +259,14 @@ function initEditor(e)
 		});
 
 		if (editor) {
-			KindEditor.ready(function (K) {
-				for (var i in editor) {
-					var id = editor[i];
-					if (typeof(id) == 'string' && !editors[id]) {
-						param.index = editors_index.length;
-						editors[id] = K.create('#' + id, param);
-						editors_index.push(id);
-					}
+			for (var i in editor) {
+				var id = editor[i];
+				if (typeof(id) == 'string' && !editors[id]) {
+					param.index = editors_index.length;
+					editors[id] = KindEditor.create('#' + id, param);
+					editors_index.push(id);
 				}
-			});
+			}
 		}
 	}
 }