From fc026e12a568f074a30b2134df1fb5b993936bb7 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 20 Jun 2019 13:35:12 -0400 Subject: [PATCH] FIX: Some toolbar operations weren't triggering the `change` event This would mean that some simple edits to queued posts did not get saved. --- app/assets/javascripts/discourse/components/d-editor.js.es6 | 2 +- .../javascripts/discourse/templates/components/d-editor.hbs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/components/d-editor.js.es6 b/app/assets/javascripts/discourse/components/d-editor.js.es6 index 9521d3f39a6..ed6ced3e179 100644 --- a/app/assets/javascripts/discourse/components/d-editor.js.es6 +++ b/app/assets/javascripts/discourse/components/d-editor.js.es6 @@ -541,7 +541,7 @@ export default Ember.Component.extend({ } textarea.selectionStart = from; textarea.selectionEnd = from + length; - + Ember.run.next(() => $textarea.trigger("change")); $textarea.scrollTop(oldScrollPos); }); }, diff --git a/app/assets/javascripts/discourse/templates/components/d-editor.hbs b/app/assets/javascripts/discourse/templates/components/d-editor.hbs index 544168fe050..1f825661455 100644 --- a/app/assets/javascripts/discourse/templates/components/d-editor.hbs +++ b/app/assets/javascripts/discourse/templates/components/d-editor.hbs @@ -47,7 +47,7 @@ class="d-editor-input" placeholder=placeholderTranslated disabled=disabled - change=change}} + input=change}} {{popup-input-tip validation=validation}} {{plugin-outlet name="after-d-editor" tagName="" args=outletArgs}}