code: function () {
          var self = this, rng = self.getRng(), sel = self.getSel();
  
          if (!rng || rng.item) {
            return false;
          }
  
          if (rng.compareEndPoints) {
            return rng.compareEndPoints('StartToEnd', rng) === 0;
          }
  
          return !sel || rng.collapsed;
        }
docs: Returns true/false if the selection range is collapsed or not. Collapsed means if it's a caret or a larger selection.
  
  @method isCollapsed
  @return {Boolean} true/false state if the selection range is collapsed or not.
  Collapsed means if it's a caret or a larger selection.