2017-08-17 22:00:37 +05:30
|
|
|
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var, quotes, max-len */
|
|
|
|
/* global ace */
|
2016-09-13 17:45:13 +05:30
|
|
|
|
|
|
|
(function() {
|
|
|
|
$(function() {
|
2017-08-17 22:00:37 +05:30
|
|
|
var editor = ace.edit("editor");
|
2016-09-13 17:45:13 +05:30
|
|
|
|
|
|
|
$(".snippet-form-holder form").on('submit', function() {
|
|
|
|
$(".snippet-file-content").val(editor.getValue());
|
|
|
|
});
|
|
|
|
});
|
2017-08-17 22:00:37 +05:30
|
|
|
}).call(window);
|