Merge pull request #970 from repotag/issue969
Add root slash to drag-and-drop upload path. Resolves #969.
This commit is contained in:
@@ -129,7 +129,7 @@
|
||||
type: 'POST',
|
||||
success: function(){
|
||||
$editorBody.removeClass('uploading');
|
||||
var text = '[[' + uploadDest + '/' + file.name + ']]';
|
||||
var text = '[[/' + uploadDest + '/' + file.name + ']]';
|
||||
var pos = editorBody.selectionStart || 0;
|
||||
editorBody.value = editorBody.value.substring(0, pos) + text + editorBody.value.substring(pos);
|
||||
editorBody.selectionStart = pos + text.length;
|
||||
|
||||
Reference in New Issue
Block a user