FEATURE: Quote reply at cursor

This commit is contained in:
Sam
2014-06-18 15:17:32 +10:00
parent 6cab36bc13
commit 806ddb4ccb
5 changed files with 57 additions and 3 deletions

View File

@ -70,6 +70,11 @@ export default Discourse.Controller.extend({
if (c) { c.appendText(text); }
},
appendBlockAtCursor: function(text) {
var c = this.get('model');
if (c) { c.appendText(text, $('#wmd-input').caret(), {block: true}); }
},
categories: function() {
return Discourse.Category.list();
}.property(),