|
@@ -528,8 +528,11 @@ function loadEditorParam(e)
|
|
|
yun.domain = domain;
|
|
|
yun.path = path;
|
|
|
}
|
|
|
+ if (!key) {
|
|
|
+ key = 1;
|
|
|
+ }
|
|
|
if (!media) {
|
|
|
- media = key;
|
|
|
+ media = 3;
|
|
|
}
|
|
|
|
|
|
var view = config.upload.replace('save', 'view');
|
|
@@ -547,7 +550,8 @@ function loadEditorParam(e)
|
|
|
uploadResJson : config.uploadRes + '.kindeditor?key=' + key + '&search=' + upload_search_value,
|
|
|
uploadMediaJson : config.upload + '.kindeditor?key=' + media + '&search=' + upload_search_value,
|
|
|
uploadYunJson : yun,
|
|
|
- fileManagerJson : view + '.files?key=' + media + '&upload_search=' + upload_search,
|
|
|
+ fileManagerJson : view + '.files?key=' + key + '&upload_search=' + upload_search,
|
|
|
+ mediaManagerJson : view + '.files?key=' + media + '&upload_search=' + upload_search,
|
|
|
|
|
|
htmlTags : {
|
|
|
section : ['id', 'class', 'color', 'size', 'face', '.background-color'],
|
|
@@ -590,7 +594,7 @@ function loadEditorParam(e)
|
|
|
'plainpaste', 'wordpaste', '|', 'justifyleft', 'justifycenter', 'justifyright',
|
|
|
'justifyfull', 'indent', 'outdent', 'clearhtml', 'quickformat', 'selectall', '|', 'fullscreen', 'source', '/',
|
|
|
'formatblock', 'fontsize', 'fontheight', '|', 'forecolor', 'hilitecolor', 'bold',
|
|
|
- 'italic', 'underline', 'lineheight', 'removeformat', 'insertorderedlist','|', 'image','table', 'hr', 'pagebreak','link', 'unlink'
|
|
|
+ 'italic', 'underline', 'lineheight', 'removeformat', 'insertorderedlist','|', 'image','media','table', 'hr', 'pagebreak','link', 'unlink'
|
|
|
]
|
|
|
/*
|
|
|
items : [
|