Commit ee7ac72f authored by Liang Ding's avatar Liang Ding

Merge branch '1.7.0-dev' of https://github.com/b3log/solo into 1.7.0-dev

parents c3314cef e8c8238f
...@@ -56,25 +56,6 @@ Util.processClipBoard = function (clipboardData, cm) { ...@@ -56,25 +56,6 @@ Util.processClipBoard = function (clipboardData, cm) {
if (1 === node.attributes.length) { if (1 === node.attributes.length) {
return ""; return "";
} }
var requestJSONObject = {
url: node.src
};
$.ajax({
url: Label.servePath + "/fetch-upload",
type: "POST",
data: JSON.stringify(requestJSONObject),
cache: false,
success: function (result, textStatus) {
if (result.sc) {
var value = cm.getValue();
value = value.replace(result.originalURL, result.url);
cm.setValue(value);
}
}
});
return "![](" + node.src + ")"; return "![](" + node.src + ")";
} }
} }
......
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