code: function (value, strategy, e) {
        var pre = this.getTextFromHeadToCaret();
        var post = this.el.value.substring(this.el.selectionEnd);
        var newSubstr = strategy.replace(value, e);
        var regExp;
        if (typeof newSubstr !== 'undefined') {
          if ($.isArray(newSubstr)) {
            post = newSubstr[1] + post;
            newSubstr = newSubstr[0];
          }
          regExp = $.isFunction(strategy.match) ? strategy.match(pre) : strategy.match;
          pre = pre.replace(regExp, newSubstr);
          this.$el.val(pre + post);
          this.el.selectionStart = this.el.selectionEnd = pre.length;
        }
      }
docs: Public methods -------------- Update the textarea with the given value and strategy.