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