FIX: only consider it handled by composer when a composer (#15254)

This commit is contained in:
Joffrey JAFFEUX 2021-12-10 13:07:54 +01:00 committed by GitHub
parent ec36cddd2f
commit ac31c2bbb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}
}