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