diff --git a/shared/naturalcrit/codeEditor/codeEditor.jsx b/shared/naturalcrit/codeEditor/codeEditor.jsx index fe63fdd15..3ca0e61e4 100644 --- a/shared/naturalcrit/codeEditor/codeEditor.jsx +++ b/shared/naturalcrit/codeEditor/codeEditor.jsx @@ -234,7 +234,7 @@ const CodeEditor = createClass({ if(!overwrite) { cm.setCursor(cm.getCursor('from')); } - cm.replaceSelection(injectText, 'around'); + cm.replaceSelection(injectText, 'end'); }, makeUnderline : function() {