Merge pull request #970 from repotag/issue969

Add root slash to drag-and-drop upload path. Resolves #969.
This commit is contained in:
Dawa Ometto
2015-01-30 22:13:01 +01:00
@@ -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;