debian-mirror-gitlab/app/assets/javascripts/snippet/snippet_bundle.js
2020-03-09 13:42:32 +05:30

14 lines
309 B
JavaScript

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