diff --git a/app/assets/javascripts/discourse/views/pagedown_editor.js b/app/assets/javascripts/discourse/views/pagedown_editor.js index 4782cc91781..ca571be1254 100644 --- a/app/assets/javascripts/discourse/views/pagedown_editor.js +++ b/app/assets/javascripts/discourse/views/pagedown_editor.js @@ -34,7 +34,14 @@ Discourse.PagedownEditor = Ember.ContainerView.extend({ $wmdInput.data('init', true); this.editor = Discourse.Markdown.createEditor(); return this.editor.run(); - } + }, + + observeValue: (function() { + var _this = this; + Ember.run.next(null, function() { + _this.editor && _this.editor.refreshPreview(); + }); + }).observes('value') });