snippet_bundle.js 387 Bytes
Newer Older
1 2 3
/* eslint-disable func-names, space-before-function-paren, prefer-arrow-callback, no-var, quotes, semi, padded-blocks, max-len */
/* global ace */

4 5 6 7
/*= require_tree . */

(function() {
  $(function() {
Connor Shea's avatar
Connor Shea committed
8
    var editor = ace.edit("editor")
9 10 11 12 13 14 15

    $(".snippet-form-holder form").on('submit', function() {
      $(".snippet-file-content").val(editor.getValue());
    });
  });

}).call(this);