1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 10:11:43 +02:00

Fix mention button in composer toolbar

It seems like we missed one `this.props` during the beta 14 rewrite
This commit is contained in:
Alexander Skvortsov
2020-12-10 23:49:26 -05:00
parent 9ca860ee7b
commit eea694e021

View File

@@ -205,7 +205,7 @@ export default function addComposerAutocomplete() {
extend(TextEditor.prototype, 'toolbarItems', function(items) {
items.add('mention', (
<TextEditorButton onclick={() => this.props.composer.editor.insertAtCursor('@')} icon="fas fa-at">
<TextEditorButton onclick={() => this.attrs.composer.editor.insertAtCursor('@')} icon="fas fa-at">
{app.translator.trans('flarum-mentions.forum.composer.mention_tooltip')}
</TextEditorButton>
));