code: function(instance) {
  
      var $this = $(instance);
  
      return {
        getValue: function() {
          return $this.val();
        },
        insertValue: function(val) {
          inlineAttachment.util.insertTextAtCursor($this[0], val);
        },
        setValue: function(val) {
          $this.val(val);
        }
      };
    }
docs: Creates a new editor using jQuery