diff options
author | Kushal Pandya <kushal@gitlab.com> | 2018-06-21 17:22:43 +0530 |
---|---|---|
committer | Kushal Pandya <kushal@gitlab.com> | 2018-06-25 18:30:42 +0530 |
commit | db9fb8a30e4c39f3b9ba2722a36af5288c5a5b35 (patch) | |
tree | 3e15bd6364cbfdd3f17109da7d9be8dbfb25b1d1 /app/assets/javascripts/vue_shared/components/markdown/field.vue | |
parent | 2bac2918b2d6f12d94f739f4b6865b9e9221c642 (diff) | |
download | gitlab-ce-db9fb8a30e4c39f3b9ba2722a36af5288c5a5b35.tar.gz |
Add default autocomplete config
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/markdown/field.vue')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/markdown/field.vue | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/assets/javascripts/vue_shared/components/markdown/field.vue b/app/assets/javascripts/vue_shared/components/markdown/field.vue index 7d26390d9bc..fba67681777 100644 --- a/app/assets/javascripts/vue_shared/components/markdown/field.vue +++ b/app/assets/javascripts/vue_shared/components/markdown/field.vue @@ -62,7 +62,14 @@ /* GLForm class handles all the toolbar buttons */ - return new GLForm($(this.$refs['gl-form']), this.enableAutocomplete); + return new GLForm($(this.$refs['gl-form']), { + emojis: this.enableAutocomplete, + members: this.enableAutocomplete, + issues: this.enableAutocomplete, + mergeRequests: this.enableAutocomplete, + milestones: this.enableAutocomplete, + labels: this.enableAutocomplete, + }); }, beforeDestroy() { const glForm = $(this.$refs['gl-form']).data('glForm'); |