lib/gollum/public/gollum/javascript/editor/gollum.editor.js in gollum-3.1.2 vs lib/gollum/public/gollum/javascript/editor/gollum.editor.js in gollum-3.1.3
- old
+ new
@@ -127,10 +127,10 @@
contentType: false,
processData: false,
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;
editorBody.selectionEnd = pos + text.length;
},