debian-mirror-gitlab/app/assets/javascripts/snippet/snippet_bundle.js
2018-03-27 19:54:05 +05:30

9 lines
197 B
JavaScript

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