diff --git a/app/assets/javascripts/discourse/app/mixins/textarea-text-manipulation.js b/app/assets/javascripts/discourse/app/mixins/textarea-text-manipulation.js index 2e2de5c5ef6..a364defddde 100644 --- a/app/assets/javascripts/discourse/app/mixins/textarea-text-manipulation.js +++ b/app/assets/javascripts/discourse/app/mixins/textarea-text-manipulation.js @@ -315,8 +315,10 @@ export default Mixin.create({ markdown = pre.match(/\S$/) ? ` ${markdown}` : markdown; } - this.appEvents.trigger("composer:insert-text", markdown); - handled = true; + if (isComposer) { + this.appEvents.trigger("composer:insert-text", markdown); + handled = true; + } } }