diff options
author | Douwe Maan <douwe@selenight.nl> | 2019-02-11 05:41:06 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2019-05-05 23:20:55 +0300 |
commit | 140d40d25d6c871e6b3f0cca795224a65637f019 (patch) | |
tree | c821ac20f777c632b6e9ad0fb3e8a084f04efcfa /app | |
parent | 26526794b20d9b0c186519ced796961ceb100560 (diff) |
Remove GLForm from MarkdownField
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/vue_shared/components/markdown/field.vue | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/app/assets/javascripts/vue_shared/components/markdown/field.vue b/app/assets/javascripts/vue_shared/components/markdown/field.vue index 31a658206c1..a05947a1813 100644 --- a/app/assets/javascripts/vue_shared/components/markdown/field.vue +++ b/app/assets/javascripts/vue_shared/components/markdown/field.vue @@ -6,7 +6,6 @@ import Autosize from 'autosize'; import { __ } from '~/locale'; import { stripHtml } from '~/lib/utils/text_utility'; import Flash from '../../../flash'; -import GLForm from '../../../gl_form'; import markdownHeader from './header.vue'; import markdownToolbar from './toolbar.vue'; import icon from '../icon.vue'; @@ -213,20 +212,6 @@ export default { }, }, mounted() { - /* - GLForm class handles all the toolbar buttons - */ - return new GLForm($(this.$refs['gl-form']), { - emojis: this.enableAutocomplete, - members: this.enableAutocomplete, - issues: this.enableAutocomplete, - mergeRequests: this.enableAutocomplete, - epics: this.enableAutocomplete, - milestones: this.enableAutocomplete, - labels: this.enableAutocomplete, - snippets: this.enableAutocomplete, - }); - if (this.autosaveKey.length) { const draft = getDraft(this.autosaveKey); @@ -245,11 +230,6 @@ export default { this.autosizeTextarea(); }, beforeDestroy() { - const glForm = $(this.$refs['gl-form']).data('glForm'); - if (glForm) { - glForm.destroy(); - } - if (this.autocomplete) { this.autocomplete.destroy(); } |