2017-01-10 18:02:20 -05:00
|
|
|
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var, quotes, max-len */
|
2016-12-14 00:26:26 -05:00
|
|
|
/* global ace */
|
|
|
|
|
2016-06-24 14:26:11 -04:00
|
|
|
(function() {
|
|
|
|
$(function() {
|
2017-01-10 17:54:56 -05:00
|
|
|
var editor = ace.edit("editor");
|
2016-06-24 14:26:11 -04:00
|
|
|
|
|
|
|
$(".snippet-form-holder form").on('submit', function() {
|
|
|
|
$(".snippet-file-content").val(editor.getValue());
|
|
|
|
});
|
|
|
|
});
|
2017-02-10 01:50:50 -05:00
|
|
|
}).call(window);
|