Add root slash to drag-and-drop upload path. Resolves #969.

This commit is contained in:
Dawa Ometto
2015-01-30 22:06:31 +01:00
parent eea5152444
commit af6d690fc8
@@ -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;