code: function(chains) {
      for (var i = 0; i < chains.length; i++) {
        var start = chains[i][0], node = start && (start.from || start.to);
        if (node) return node;
      }
    }
docs: Retrieve a DOM node from a chain (for scrolling to it after undo/redo).