diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-11-13 12:11:54 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-11-13 12:11:54 +0300 |
commit | 1ff3f1a4f7021c7337df3cd1c24c167447b64f2b (patch) | |
tree | 430c18703ef3f04922f7b4042e99cae8d6473c79 /app/assets/javascripts/gl_form.js | |
parent | c6a48f3f92ce4b9a7e15f6e7e4845612233ae7e5 (diff) |
Export text utils as ES6 modules
Diffstat (limited to 'app/assets/javascripts/gl_form.js')
-rw-r--r-- | app/assets/javascripts/gl_form.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/assets/javascripts/gl_form.js b/app/assets/javascripts/gl_form.js index 48cd43d3348..d0f9e6af0f8 100644 --- a/app/assets/javascripts/gl_form.js +++ b/app/assets/javascripts/gl_form.js @@ -2,6 +2,7 @@ import GfmAutoComplete from './gfm_auto_complete'; import dropzoneInput from './dropzone_input'; +import textUtils from './lib/utils/text_markdown'; export default class GLForm { constructor(form, enableGFM = false) { @@ -46,7 +47,7 @@ export default class GLForm { } // form and textarea event listeners this.addEventListeners(); - gl.text.init(this.form); + textUtils.init(this.form); // hide discard button this.form.find('.js-note-discard').hide(); this.form.show(); @@ -85,7 +86,7 @@ export default class GLForm { clearEventListeners() { this.textarea.off('focus'); this.textarea.off('blur'); - gl.text.removeListeners(this.form); + textUtils.removeListeners(this.form); } addEventListeners() { |