Commit c80edf95 authored by Liyuan Li's avatar Liyuan Li

#114

parent 512a6be8
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* *
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a> * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.6.0.0, Apr 16, 2020 * @version 1.6.0.1, Apr 30, 2020
*/ */
admin.editors = {} admin.editors = {}
...@@ -81,6 +81,7 @@ $.extend(SoloEditor.prototype, { ...@@ -81,6 +81,7 @@ $.extend(SoloEditor.prototype, {
upload: { upload: {
max: 10 * 1024 * 1024, max: 10 * 1024 * 1024,
url: Label.uploadURL, url: Label.uploadURL,
linkToImgUrl: Label.servePath + '/upload/fetch',
token: Label.uploadToken, token: Label.uploadToken,
filename: function (name) { filename: function (name) {
return name.replace(/[^(a-zA-Z0-9\u4e00-\u9fa5\.)]/g, ''). return name.replace(/[^(a-zA-Z0-9\u4e00-\u9fa5\.)]/g, '').
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment