gitlab-org--gitlab-foss/app/assets/javascripts/snippet/snippet_bundle.js
2018-03-09 15:18:09 -06:00

11 lines
222 B
JavaScript

/* global ace */
import $ from 'jquery';
export default () => {
const editor = ace.edit('editor');
$('.snippet-form-holder form').on('submit', () => {
$('.snippet-file-content').val(editor.getValue());
});
};