diff --git a/app/assets/javascripts/discourse/models/composer.js.es6 b/app/assets/javascripts/discourse/models/composer.js.es6 index a59a2f8f0f9..098a3ae22e1 100644 --- a/app/assets/javascripts/discourse/models/composer.js.es6 +++ b/app/assets/javascripts/discourse/models/composer.js.es6 @@ -689,6 +689,13 @@ const Composer = RestModel.extend({ }); Composer.reopenClass({ + + open(opts) { + const composer = Discourse.__container__.lookup('store:main').createRecord('composer'); + composer.open(opts); + return composer; + }, + loadDraft(opts) { opts = opts || {};