diff --git a/js/topcodereditor.js b/js/topcodereditor.js index 6ebc133..b94f6c4 100644 --- a/js/topcodereditor.js +++ b/js/topcodereditor.js @@ -610,4 +610,10 @@ MathJax.typeset(); } }); + + // Comment with quotes + $(document).on('ApplyQuoteText',function(ev, quoteText) { + var text = editor.value(); + editor.value(quoteText + '\n' + text + '\n'); + }); }(jQuery));