diff --git a/assets/javascripts/image_paste.js b/assets/javascripts/image_paste.js index 98aabf1..5bd5e7f 100644 --- a/assets/javascripts/image_paste.js +++ b/assets/javascripts/image_paste.js @@ -1,7 +1,7 @@ jQuery.event.props.push('clipboardData'); function pasteImageName(e, name) { - var text = '!' + name + '! '; + var text = '![](' + name + ') '; var scrollPos = e.scrollTop; var method = ((e.selectionStart || e.selectionStart == '0') ? 1 : (document.selection ? 2 : false ) ); if (method == 2) {